Skip to content

Commit

Permalink
V4L/DVB (6989): tda18271: clean up chip id logic in tda829x_release
Browse files Browse the repository at this point in the history
This test is easier to read.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent cf04d29 commit 006ed1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/video/tda8290.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 006ed1e

Please sign in to comment.