via: Do not attempt I/O on inactive I2C adapters

If an adapter has been configured for GPIO (or off), we should not try to
use it as an I2C port.

Cc: [email protected]
Cc: [email protected]
Cc: Harald Welte <[email protected]>
Acked-by: Florian Tobias Schandinat <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
diff --git a/drivers/video/via/via_i2c.h b/drivers/video/via/via_i2c.h
index b2332cc..1d18e7d 100644
--- a/drivers/video/via/via_i2c.h
+++ b/drivers/video/via/via_i2c.h
@@ -26,6 +26,7 @@
 
 struct via_i2c_stuff {
 	u16 i2c_port;			/* GPIO or I2C port */
+	u16 is_active;			/* Being used as I2C? */
 	struct i2c_adapter adapter;
 	struct i2c_algo_bit_data algo;
 };