summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda9840.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/tda9840.c')
-rw-r--r--linux/drivers/media/video/tda9840.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tda9840.c b/linux/drivers/media/video/tda9840.c
index 6da68d762..85295ac2d 100644
--- a/linux/drivers/media/video/tda9840.c
+++ b/linux/drivers/media/video/tda9840.c
@@ -234,6 +234,12 @@ static int tda9840_detect(struct i2c_adapter *adapter, int address, unsigned sho
static int tda9840_attach(struct i2c_adapter *adapter)
{
+ /* let's see whether this is a know adapter we can attach to */
+ if( adapter->id != I2C_ALGO_SAA7146 ) {
+ dprintk("tda9840.o: refusing to probe on unknown adapter [name='%s',id=0x%x]\n",adapter->name,adapter->id);
+ return -ENODEV;
+ }
+
return i2c_probe(adapter,&addr_data,&tda9840_detect);
}