diff options
Diffstat (limited to 'linux/drivers/media/video/tea6415c.c')
-rw-r--r-- | linux/drivers/media/video/tea6415c.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tea6415c.c b/linux/drivers/media/video/tea6415c.c index 7cbc580de..7215c58f8 100644 --- a/linux/drivers/media/video/tea6415c.c +++ b/linux/drivers/media/video/tea6415c.c @@ -92,6 +92,12 @@ static int tea6415c_detect(struct i2c_adapter *adapter, int address, unsigned sh 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 ) { + dprintk("tea6415c.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,&tea6415c_detect); } |