diff options
Diffstat (limited to 'linux/drivers/media/video/tea6420.c')
-rw-r--r-- | linux/drivers/media/video/tea6420.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tea6420.c b/linux/drivers/media/video/tea6420.c index 3d8bf1e18..63aa2caa9 100644 --- a/linux/drivers/media/video/tea6420.c +++ b/linux/drivers/media/video/tea6420.c @@ -142,6 +142,12 @@ static int tea6420_detect(struct i2c_adapter *adapter, int address, unsigned sho static int tea6420_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("tea6420.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,&tea6420_detect); } |