summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tea6415c.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-04-28 17:53:36 +0000
committerMichael Hunold <devnull@localhost>2003-04-28 17:53:36 +0000
commite1399ab6e7a98aafcabc260a30cccf1fa59666dd (patch)
tree9324ac2aa8ef45098e51f5041c4381af3aac7852 /linux/drivers/media/video/tea6415c.c
parentcf56c58ffc026357baf1820ea2b467ff06e42027 (diff)
downloadmediapointer-dvb-s2-e1399ab6e7a98aafcabc260a30cccf1fa59666dd.tar.gz
mediapointer-dvb-s2-e1399ab6e7a98aafcabc260a30cccf1fa59666dd.tar.bz2
Compile fixes against 2.5.68.
- add some ifdef magic into i2c drivers (mxb/analog drivers only) - shuffle around includes, so that "dvb_compat.h" is included after all other include files - fix a warning in saa7146 i2c code
Diffstat (limited to 'linux/drivers/media/video/tea6415c.c')
-rw-r--r--linux/drivers/media/video/tea6415c.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tea6415c.c b/linux/drivers/media/video/tea6415c.c
index fe91e32cb..f8db1aacc 100644
--- a/linux/drivers/media/video/tea6415c.c
+++ b/linux/drivers/media/video/tea6415c.c
@@ -103,7 +103,11 @@ static int tea6415c_attach(struct i2c_adapter *adapter)
{
/* let's see whether this is a know adapter we can attach to */
if( adapter->id != I2C_ALGO_SAA7146 ) {
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
dprintk("tea6415c.o: refusing to probe on unknown adapter [name='%s',id=0x%x]\n",adapter->name,adapter->id);
+#else
+ dprintk("tea6415c.o: refusing to probe on unknown adapter [name='%s',id=0x%x]\n",adapter->dev.name,adapter->id);
+#endif
return -ENODEV;
}