summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/ttpci/budget-av.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-20 12:01:47 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 01:59:38 -0300
commit6b3ccab75ce082f7d63a43903ebd75da4266f77e (patch)
tree866d08667706310aaf7151a9802595fb44a7b63f /drivers/media/dvb/ttpci/budget-av.c
parent159f8a6eda8c2ee359bb87bf62be70da2da14918 (diff)
V4L/DVB (3895): Additional frontend_init safety checks
Don't try and set the tuner ops if the demod was not detected. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/ttpci/budget-av.c')
-rw-r--r--drivers/media/dvb/ttpci/budget-av.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/dvb/ttpci/budget-av.c b/drivers/media/dvb/ttpci/budget-av.c
index 9bd069e4e11..68004187860 100644
--- a/drivers/media/dvb/ttpci/budget-av.c
+++ b/drivers/media/dvb/ttpci/budget-av.c
@@ -1113,6 +1113,10 @@ static void frontend_init(struct budget_av *budget_av)
case SUBID_DVBT_CINERGY1200:
fe = tda10046_attach(&philips_tu1216_config,
&budget_av->budget.i2c_adap);
+ if (fe) {
+ fe->ops->tuner_ops.init = philips_tu1216_tuner_init;
+ fe->ops->tuner_ops.set_params = philips_tu1216_tuner_set_params;
+ }
break;
}