summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-06-21 17:04:46 +0000
committerMichael Hunold <devnull@localhost>2004-06-21 17:04:46 +0000
commit2e251128662e9ebd203f569d91c60a9b36a0c179 (patch)
treedf25fdf7a6fd59d1ff7cedcfd837394972b3ecf1 /linux/drivers/media/common
parent5a55a75489eb0d6a3b1dfdf391f7be6f09036d64 (diff)
downloadmediapointer-dvb-s2-2e251128662e9ebd203f569d91c60a9b36a0c179.tar.gz
mediapointer-dvb-s2-2e251128662e9ebd203f569d91c60a9b36a0c179.tar.bz2
- compilation fix for analog 2.4 drivers
Diffstat (limited to 'linux/drivers/media/common')
-rw-r--r--linux/drivers/media/common/saa7146_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/common/saa7146_i2c.c b/linux/drivers/media/common/saa7146_i2c.c
index 9d7b806fb..2931b61fa 100644
--- a/linux/drivers/media/common/saa7146_i2c.c
+++ b/linux/drivers/media/common/saa7146_i2c.c
@@ -411,10 +411,10 @@ int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c
saa7146_i2c_reset(dev);
if( NULL != i2c_adapter ) {
- BUG_ON(!i2c_adapter->class);
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
i2c_adapter->data = dev;
#else
+ BUG_ON(!i2c_adapter->class);
i2c_set_adapdata(i2c_adapter,dev);
#endif
i2c_adapter->algo = &saa7146_algo;