aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/common/saa7146_i2c.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/common/saa7146_i2c.c b/drivers/media/common/saa7146_i2c.c
index 1b64074a92da..76229f992275 100644
--- a/drivers/media/common/saa7146_i2c.c
+++ b/drivers/media/common/saa7146_i2c.c
@@ -418,8 +418,7 @@ int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c
418 dev->i2c_bitrate = bitrate; 418 dev->i2c_bitrate = bitrate;
419 saa7146_i2c_reset(dev); 419 saa7146_i2c_reset(dev);
420 420
421 if( NULL != i2c_adapter ) { 421 if (i2c_adapter) {
422 BUG_ON(!i2c_adapter->class);
423 i2c_set_adapdata(i2c_adapter, &dev->v4l2_dev); 422 i2c_set_adapdata(i2c_adapter, &dev->v4l2_dev);
424 i2c_adapter->dev.parent = &dev->pci->dev; 423 i2c_adapter->dev.parent = &dev->pci->dev;
425 i2c_adapter->algo = &saa7146_algo; 424 i2c_adapter->algo = &saa7146_algo;