summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-09-01 18:39:05 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-09-01 18:39:05 -0300
commit8f0e83410026fe17e678322dae788d75fb6cc03d (patch)
treeedea4350dc095217344d51180bb84a10574b7b25
parente6d016160922788a8201f0356c7270cb1c21e3c4 (diff)
downloadmediapointer-dvb-s2-8f0e83410026fe17e678322dae788d75fb6cc03d.tar.gz
mediapointer-dvb-s2-8f0e83410026fe17e678322dae788d75fb6cc03d.tar.bz2
Code were preventing saa7111 and saa7118 to work
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--linux/drivers/media/video/saa7115.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/linux/drivers/media/video/saa7115.c b/linux/drivers/media/video/saa7115.c
index 31d9ee396..461b2fd68 100644
--- a/linux/drivers/media/video/saa7115.c
+++ b/linux/drivers/media/video/saa7115.c
@@ -1495,11 +1495,7 @@ static int saa711x_attach(struct i2c_adapter *adapter, int address, int kind)
saa711x_write(client, 0, 5);
chip_id = saa711x_read(client, 0) & 0x0f;
- if (chip_id < 3 && chip_id > 5) {
- v4l_dbg(1, debug, client, "saa7115 not found\n");
- kfree(client);
- return 0;
- }
+
snprintf(client->name, sizeof(client->name) - 1, "saa711%d",chip_id);
v4l_info(client, "saa711%d found (%s) @ 0x%x (%s)\n", chip_id, name, address << 1, adapter->name);