diff options
-rw-r--r-- | linux/drivers/media/common/saa7146_i2c.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/common/saa7146_i2c.c b/linux/drivers/media/common/saa7146_i2c.c index e9c1435b6..8871d4cfe 100644 --- a/linux/drivers/media/common/saa7146_i2c.c +++ b/linux/drivers/media/common/saa7146_i2c.c @@ -419,7 +419,10 @@ int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c i2c_adapter->id = I2C_ALGO_SAA7146; i2c_adapter->timeout = SAA7146_I2C_TIMEOUT; i2c_adapter->retries = SAA7146_I2C_RETRIES; +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)) +#else i2c_adapter->class = I2C_ADAP_CLASS_TV_ANALOG; +#endif } return 0; |