diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-23 14:27:27 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-23 14:27:27 -0300 |
commit | 52e1a0cb22cc2caac3faa63d0e7e0039791816a4 (patch) | |
tree | 2f1b273287803b4178ed51fde60a131397ef26f4 /linux/drivers/media/video/tuner-core.c | |
parent | 6bb75de85d2b36b4e02be0e57279e2b7f33c9a38 (diff) | |
download | mediapointer-dvb-s2-52e1a0cb22cc2caac3faa63d0e7e0039791816a4.tar.gz mediapointer-dvb-s2-52e1a0cb22cc2caac3faa63d0e7e0039791816a4.tar.bz2 |
tea5761: bugzilla #10462: tea5761 autodetection code were broken
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r-- | linux/drivers/media/video/tuner-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index fa218e910..42903463d 100644 --- a/linux/drivers/media/video/tuner-core.c +++ b/linux/drivers/media/video/tuner-core.c @@ -1155,8 +1155,8 @@ static int tuner_probe(struct i2c_client *client) if (!no_autodetect) { switch (client->addr) { case 0x10: - if (tea5761_autodetection(t->i2c->adapter, t->i2c->addr) - != EINVAL) { + if (tea5761_autodetection(t->i2c->adapter, + t->i2c->addr) >= 0) { t->type = TUNER_TEA5761; t->mode_mask = T_RADIO; t->mode = T_STANDBY; @@ -1168,7 +1168,7 @@ static int tuner_probe(struct i2c_client *client) goto register_client; } - break; + return -ENODEV; case 0x42: case 0x43: case 0x4a: |