diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-01-09 08:44:27 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-01-09 08:44:27 -0500 |
commit | 06a93cdefdb54b93017c0cc7fa3f67d28198fad5 (patch) | |
tree | b5c82ac49fea2819a2a29f151178f8206b45dfa4 /linux/drivers/media | |
parent | 4f1f745b3b369eceda529e6679baf80afea3bcd9 (diff) | |
download | mediapointer-dvb-s2-06a93cdefdb54b93017c0cc7fa3f67d28198fad5.tar.gz mediapointer-dvb-s2-06a93cdefdb54b93017c0cc7fa3f67d28198fad5.tar.bz2 |
tda18271: clean up chip id logic in tda829x_release
From: Michael Krufky <mkrufky@linuxtv.org>
This test is easier to read.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/video/tda8290.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/tda8290.c b/linux/drivers/media/video/tda8290.c index 6829e08fb..31bd84600 100644 --- a/linux/drivers/media/video/tda8290.c +++ b/linux/drivers/media/video/tda8290.c @@ -530,9 +530,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); |