aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-23 16:27:27 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:50 -0400
commit867e835f4db4eba6d49072382cc05fc210c4ed1c (patch)
treee156664e4906a25d11e100f9beb401747249f37e /drivers/media/video/tuner-core.c
parenta589b66546d3d81e28dd95d3463c9e9da3d68728 (diff)
V4L/DVB (7728): tea5761: bugzilla #10462: tea5761 autodetection code were broken
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r--drivers/media/video/tuner-core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index e886f48a2909..529e00952a8d 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -1111,8 +1111,8 @@ static int tuner_probe(struct i2c_client *client)
1111 if (!no_autodetect) { 1111 if (!no_autodetect) {
1112 switch (client->addr) { 1112 switch (client->addr) {
1113 case 0x10: 1113 case 0x10:
1114 if (tea5761_autodetection(t->i2c->adapter, t->i2c->addr) 1114 if (tea5761_autodetection(t->i2c->adapter,
1115 != EINVAL) { 1115 t->i2c->addr) >= 0) {
1116 t->type = TUNER_TEA5761; 1116 t->type = TUNER_TEA5761;
1117 t->mode_mask = T_RADIO; 1117 t->mode_mask = T_RADIO;
1118 t->mode = T_STANDBY; 1118 t->mode = T_STANDBY;
@@ -1124,7 +1124,7 @@ static int tuner_probe(struct i2c_client *client)
1124 1124
1125 goto register_client; 1125 goto register_client;
1126 } 1126 }
1127 break; 1127 return -ENODEV;
1128 case 0x42: 1128 case 0x42:
1129 case 0x43: 1129 case 0x43:
1130 case 0x4a: 1130 case 0x4a: