aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci/budget-av.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-20 11:01:47 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 00:59:38 -0400
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 9bd069e4e11a..68004187860f 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)
1113 case SUBID_DVBT_CINERGY1200: 1113 case SUBID_DVBT_CINERGY1200:
1114 fe = tda10046_attach(&philips_tu1216_config, 1114 fe = tda10046_attach(&philips_tu1216_config,
1115 &budget_av->budget.i2c_adap); 1115 &budget_av->budget.i2c_adap);
1116 if (fe) {
1117 fe->ops->tuner_ops.init = philips_tu1216_tuner_init;
1118 fe->ops->tuner_ops.set_params = philips_tu1216_tuner_set_params;
1119 }
1116 break; 1120 break;
1117 } 1121 }
1118 1122