Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e2be32ac8017d1bcb293f8c11c046ff654991385
Commit:     e2be32ac8017d1bcb293f8c11c046ff654991385
Parent:     1dde7a4fa2b197d298c3f1b97a7f78fd1c3a1bda
Author:     Michael Krufky <[EMAIL PROTECTED]>
AuthorDate: Sun Oct 21 14:35:21 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:01:08 2008 -0200

    V4L/DVB (6437): tuner: clear analog_demod_ops on release
    
    Clear analog_demod_ops on release.
    Fix test for analog_demod_ops after tuner attach.
    
    Signed-off-by: Michael Krufky <[EMAIL PROTECTED]>
    Reviewed-by: Hans Verkuil <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/tuner-core.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index f31de98..9de6676 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -101,6 +101,8 @@ static void fe_release(struct tuner *t)
 
        if (fe_tuner_ops->release)
                fe_tuner_ops->release(&t->fe);
+
+       t->fe.ops.analog_demod_ops = NULL;
 }
 
 static void fe_standby(struct tuner *t)
@@ -353,6 +355,8 @@ static void set_type(struct i2c_client *c, unsigned int 
type,
                break;
        }
 
+       ops = t->fe.ops.analog_demod_ops;
+
        if (((NULL == ops) ||
             ((NULL == ops->set_tv_freq) && (NULL == ops->set_radio_freq))) &&
            (fe_tuner_ops->set_analog_params)) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to