]> err.no Git - linux-2.6/commitdiff
V4L/DVB (6989): tda18271: clean up chip id logic in tda829x_release
authorMichael Krufky <mkrufky@linuxtv.org>
Wed, 9 Jan 2008 13:44:27 +0000 (10:44 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:04:45 +0000 (19:04 -0200)
This test is easier to read.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tda8290.c

index 4ac7c04388966ddbdb1b924048b788d99ac9daeb..3e593a3d90317a99f95d28bdecbc772e6ffcb9ed 100644 (file)
@@ -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);