From: Michael Krufky Date: Mon, 5 Jan 2009 21:25:04 +0000 (-0300) Subject: V4L/DVB (10182): tda8290: fix TDA8290 + TDA18271 initialization X-Git-Tag: firefly_0821_release~16076^2~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=439b72b69e4992e9ec34b74304f0fa95623934eb;p=firefly-linux-kernel-4.4.55.git V4L/DVB (10182): tda8290: fix TDA8290 + TDA18271 initialization 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/common/tuners/tda8290.c b/drivers/media/common/tuners/tda8290.c index 0e7f77f93e00..4b8662edb7cb 100644 --- a/drivers/media/common/tuners/tda8290.c +++ b/drivers/media/common/tuners/tda8290.c @@ -766,7 +766,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);