summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2009-01-05 18:25:04 -0300
committerGreg Kroah-Hartman <gregkh@suse.de>2009-03-16 17:32:31 -0700
commit6ffcc214c90fc8eaa2bbb30f4d4faeafe800a443 (patch)
treee29f0d413f94f435e2dae35878f10192c151472c
parentc269003c1d49ac6b6802f8cb0345cd7a556b7884 (diff)
downloadlinux-stable-6ffcc214c90fc8eaa2bbb30f4d4faeafe800a443.tar.gz
V4L: tda8290: fix TDA8290 + TDA18271 initialization
(cherry picked from commit 439b72b69e4992e9ec34b74304f0fa95623934eb) Don't call tda8290_init_tuner unless we have either a TDA8275 or TDA8275A present. Calling this function will cause a TDA18271 to get sick, so we should only call it when needed. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/media/common/tuners/tda8290.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/tda8290.c b/drivers/media/common/tuners/tda8290.c
index c112bdd4e0f0..edfd41f98885 100644
--- a/drivers/media/common/tuners/tda8290.c
+++ b/drivers/media/common/tuners/tda8290.c
@@ -724,7 +724,8 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe,
fe->ops.analog_ops.info.name = name;
if (priv->ver & TDA8290) {
- tda8290_init_tuner(fe);
+ if (priv->ver & (TDA8275 | TDA8275A))
+ tda8290_init_tuner(fe);
tda8290_init_if(fe);
} else if (priv->ver & TDA8295)
tda8295_init_if(fe);