summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/lgdt330x.c
diff options
context:
space:
mode:
authorPatrick Boettcher <devnull@localhost>2005-08-14 15:31:24 +0000
committerPatrick Boettcher <devnull@localhost>2005-08-14 15:31:24 +0000
commitf298917ccd7cd74c18668b6a8f4b71b1bc518cd5 (patch)
tree442eb2135f2cf8d3d84a6a4d167e0f9b2f64fda6 /linux/drivers/media/dvb/frontends/lgdt330x.c
parent95e4ed02d8fd299237263db54f8c0a0d97001026 (diff)
downloadmediapointer-dvb-s2-f298917ccd7cd74c18668b6a8f4b71b1bc518cd5.tar.gz
mediapointer-dvb-s2-f298917ccd7cd74c18668b6a8f4b71b1bc518cd5.tar.bz2
FIX: check if the callback is set, before calling it
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/lgdt330x.c')
-rw-r--r--linux/drivers/media/dvb/frontends/lgdt330x.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgdt330x.c b/linux/drivers/media/dvb/frontends/lgdt330x.c
index 58bad7338..9d2e9940a 100644
--- a/linux/drivers/media/dvb/frontends/lgdt330x.c
+++ b/linux/drivers/media/dvb/frontends/lgdt330x.c
@@ -378,12 +378,14 @@ static int lgdt330x_set_parameters(struct dvb_frontend* fe,
/* Select the requested mode */
i2c_write_demod_bytes(state, top_ctrl_cfg,
sizeof(top_ctrl_cfg));
- state->config->set_ts_params(fe, 0);
+ if (state->config->set_ts_params)
+ state->config->set_ts_params(fe, 0);
state->current_modulation = param->u.vsb.modulation;
}
/* Tune to the specified frequency */
- state->config->pll_set(fe, param);
+ if (state->config->pll_set)
+ state->config->pll_set(fe, param);
/* Keep track of the new frequency */
/* FIXME this is the wrong way to do this... */