From af382f57965a976afc138a6d59f64a7ee1ae4485 Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Sun, 21 Oct 2007 13:35:21 -0400 Subject: tuner: clear analog_demod_ops on release From: Michael Krufky Clear analog_demod_ops on release. Fix test for analog_demod_ops after tuner attach. Signed-off-by: Michael Krufky Reviewed-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/tuner-core.c | 4 ++++ 1 file changed, 4 insertions(+) --- linux/drivers/media/video/tuner-core.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux/drivers/media/video/tuner-core.c') diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index 23abb715b..b6de9fecb 100644 --- a/linux/drivers/media/video/tuner-core.c +++ b/linux/drivers/media/video/tuner-core.c @@ -126,6 +126,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) @@ -380,6 +382,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)) { -- cgit v1.2.3