aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-09-15 15:14:57 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:06:05 -0400
commita644c072ea2a0ba9bd46430a4710cc3ac7cbdc21 (patch)
treea891f99d652522b8f475b8fbee034b5a4d5341bb
parent1edc246c32dafd03979a341eec2528b7cdf5c37d (diff)
V4L/DVB: saa7146/tuner: remove mxb hack
Remove a hack in the tuner code for the mxb board. This hack is no longer needed since the tuner is now probed on its correct address as specified by the mxb driver. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/common/saa7146_i2c.c1
-rw-r--r--drivers/media/video/tuner-core.c6
2 files changed, 0 insertions, 7 deletions
diff --git a/drivers/media/common/saa7146_i2c.c b/drivers/media/common/saa7146_i2c.c
index 48cb154c7a46..3d88542612ea 100644
--- a/drivers/media/common/saa7146_i2c.c
+++ b/drivers/media/common/saa7146_i2c.c
@@ -414,7 +414,6 @@ int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c
414 i2c_adapter->dev.parent = &dev->pci->dev; 414 i2c_adapter->dev.parent = &dev->pci->dev;
415 i2c_adapter->algo = &saa7146_algo; 415 i2c_adapter->algo = &saa7146_algo;
416 i2c_adapter->algo_data = NULL; 416 i2c_adapter->algo_data = NULL;
417 i2c_adapter->id = I2C_HW_SAA7146;
418 i2c_adapter->timeout = SAA7146_I2C_TIMEOUT; 417 i2c_adapter->timeout = SAA7146_I2C_TIMEOUT;
419 i2c_adapter->retries = SAA7146_I2C_RETRIES; 418 i2c_adapter->retries = SAA7146_I2C_RETRIES;
420 } 419 }
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index a3bb9e90f1dd..e32146680b37 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -1052,12 +1052,6 @@ static int tuner_probe(struct i2c_client *client,
1052 printk(KERN_CONT "%02x ", buffer[i]); 1052 printk(KERN_CONT "%02x ", buffer[i]);
1053 printk("\n"); 1053 printk("\n");
1054 } 1054 }
1055 /* HACK: This test was added to avoid tuner to probe tda9840 and
1056 tea6415c on the MXB card */
1057 if (client->adapter->id == I2C_HW_SAA7146 && client->addr < 0x4a) {
1058 kfree(t);
1059 return -ENODEV;
1060 }
1061 1055
1062 /* autodetection code based on the i2c addr */ 1056 /* autodetection code based on the i2c addr */
1063 if (!no_autodetect) { 1057 if (!no_autodetect) {