Commit 9ee476a5 authored by Adrian Bunk's avatar Adrian Bunk Committed by Mauro Carvalho Chehab

V4L/DVB (5740): Git-dvb: fix the tea5761 tuner support

Due to a typo the tea5761 tuner support was dead code.
This patch also fixes a bug in the no longer dead code:
A void function can't return anything.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 0c71bf1c
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
/* standard i2c insmod options */ /* standard i2c insmod options */
static unsigned short normal_i2c[] = { static unsigned short normal_i2c[] = {
#ifdef CONFIG_TUNER_5761 #ifdef CONFIG_TUNER_TEA5761
0x10, 0x10,
#endif #endif
0x42, 0x43, 0x4a, 0x4b, /* tda8290 */ 0x42, 0x43, 0x4a, 0x4b, /* tda8290 */
...@@ -195,12 +195,12 @@ static void set_type(struct i2c_client *c, unsigned int type, ...@@ -195,12 +195,12 @@ static void set_type(struct i2c_client *c, unsigned int type,
} }
t->mode_mask = T_RADIO; t->mode_mask = T_RADIO;
break; break;
#ifdef CONFIG_TUNER_5761 #ifdef CONFIG_TUNER_TEA5761
case TUNER_TEA5761: case TUNER_TEA5761:
if (tea5761_tuner_init(c) == EINVAL) { if (tea5761_tuner_init(c) == EINVAL) {
t->type = TUNER_ABSENT; t->type = TUNER_ABSENT;
t->mode_mask = T_UNINITIALIZED; t->mode_mask = T_UNINITIALIZED;
return -ENODEV; return;
} }
t->mode_mask = T_RADIO; t->mode_mask = T_RADIO;
break; break;
...@@ -475,7 +475,7 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind) ...@@ -475,7 +475,7 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind)
/* autodetection code based on the i2c addr */ /* autodetection code based on the i2c addr */
if (!no_autodetect) { if (!no_autodetect) {
switch (addr) { switch (addr) {
#ifdef CONFIG_TUNER_5761 #ifdef CONFIG_TUNER_TEA5761
case 0x10: case 0x10:
if (tea5761_autodetection(&t->i2c) != EINVAL) { if (tea5761_autodetection(&t->i2c) != EINVAL) {
t->type = TUNER_TEA5761; t->type = TUNER_TEA5761;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment