aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/dvb/frontends/tda827x.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/tda827x.c b/drivers/media/dvb/frontends/tda827x.c
index 50adfb5395ec..229b11987a58 100644
--- a/drivers/media/dvb/frontends/tda827x.c
+++ b/drivers/media/dvb/frontends/tda827x.c
@@ -556,6 +556,11 @@ static void tda827xa_lna_gain(struct dvb_frontend *fe, int high,
556 struct i2c_msg msg = { .addr = priv->i2c_addr, .flags = 0, 556 struct i2c_msg msg = { .addr = priv->i2c_addr, .flags = 0,
557 .buf = buf, .len = sizeof(buf) }; 557 .buf = buf, .len = sizeof(buf) };
558 558
559 if (NULL == priv->cfg) {
560 dprintk("tda827x_config not defined, cannot set LNA gain!\n");
561 return;
562 }
563
559 if (priv->cfg->config) { 564 if (priv->cfg->config) {
560 if (high) 565 if (high)
561 dprintk("setting LNA to high gain\n"); 566 dprintk("setting LNA to high gain\n");