aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda827x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/tda827x.c')
-rw-r--r--drivers/media/dvb/frontends/tda827x.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/tda827x.c b/drivers/media/dvb/frontends/tda827x.c
index 8329d33b517a..50adfb5395ec 100644
--- a/drivers/media/dvb/frontends/tda827x.c
+++ b/drivers/media/dvb/frontends/tda827x.c
@@ -796,11 +796,13 @@ static int tda827x_probe_version(struct dvb_frontend *fe)
796 dprintk("tda827x tuner found\n"); 796 dprintk("tda827x tuner found\n");
797 fe->ops.tuner_ops.init = tda827x_init; 797 fe->ops.tuner_ops.init = tda827x_init;
798 fe->ops.tuner_ops.sleep = tda827xo_sleep; 798 fe->ops.tuner_ops.sleep = tda827xo_sleep;
799 priv->cfg->agcf = tda827xo_agcf; 799 if (priv->cfg)
800 priv->cfg->agcf = tda827xo_agcf;
800 } else { 801 } else {
801 dprintk("tda827xa tuner found\n"); 802 dprintk("tda827xa tuner found\n");
802 memcpy(&fe->ops.tuner_ops, &tda827xa_tuner_ops, sizeof(struct dvb_tuner_ops)); 803 memcpy(&fe->ops.tuner_ops, &tda827xa_tuner_ops, sizeof(struct dvb_tuner_ops));
803 priv->cfg->agcf = tda827xa_agcf; 804 if (priv->cfg)
805 priv->cfg->agcf = tda827xa_agcf;
804 } 806 }
805 return 0; 807 return 0;
806} 808}