From: Michael Krufky Date: Wed, 9 Jan 2008 13:44:27 +0000 (-0300) Subject: V4L/DVB (6989): tda18271: clean up chip id logic in tda829x_release X-Git-Tag: v2.6.25-rc1~1235^2~67 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=006ed1ecf2c62659e5dd902350a7eb209b8a5257;p=karo-tx-linux.git V4L/DVB (6989): tda18271: clean up chip id logic in tda829x_release This test is easier to read. Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/tda8290.c b/drivers/media/video/tda8290.c index 4ac7c0438896..3e593a3d9031 100644 --- a/drivers/media/video/tda8290.c +++ b/drivers/media/video/tda8290.c @@ -504,9 +504,9 @@ static void tda829x_release(struct dvb_frontend *fe) { struct tda8290_priv *priv = fe->analog_demod_priv; - /* dont try to release the tuner - * if we didn't attach it from this module */ - if ((priv->ver > TDA8290) && (priv->ver > TDA8295)) + /* only try to release the tuner if we've + * attached it from within this module */ + if (priv->ver & (TDA18271 | TDA8275 | TDA8275A)) if (fe->ops.tuner_ops.release) fe->ops.tuner_ops.release(fe);