V4L/DVB (4586): Code were preventing saa7111 and saa7118 to work
authorMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 1 Sep 2006 21:39:05 +0000 (18:39 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 26 Sep 2006 15:30:35 +0000 (12:30 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/saa7115.c

index 2257e4e835a165522a5cab2f0249d7272c6144cb..327a43d5116b0a978a71a3c29ebe4acef976d4a6 100644 (file)
@@ -1476,11 +1476,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);