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>
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)
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)) {