summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-10-21 13:35:21 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2007-10-21 13:35:21 -0400
commitaf382f57965a976afc138a6d59f64a7ee1ae4485 (patch)
treebaee44b722be534be21c535cfe1b1036f6eea07d /linux/drivers/media/video/tuner-core.c
parente49bb6b1caf8169505d2d84a8181d77c6d3f9acf (diff)
downloadmediapointer-dvb-s2-af382f57965a976afc138a6d59f64a7ee1ae4485.tar.gz
mediapointer-dvb-s2-af382f57965a976afc138a6d59f64a7ee1ae4485.tar.bz2
tuner: clear analog_demod_ops on release
From: Michael Krufky <mkrufky@linuxtv.org> Clear analog_demod_ops on release. Fix test for analog_demod_ops after tuner attach. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tuner-core.c | 4 ++++ 1 file changed, 4 insertions(+)
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r--linux/drivers/media/video/tuner-core.c4
1 files changed, 4 insertions, 0 deletions
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)) {