aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/dib3000mb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/dib3000mb.c')
-rw-r--r--drivers/media/dvb/frontends/dib3000mb.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/dvb/frontends/dib3000mb.c b/drivers/media/dvb/frontends/dib3000mb.c
index f2f8071ad1b0..7c6dc7e30900 100644
--- a/drivers/media/dvb/frontends/dib3000mb.c
+++ b/drivers/media/dvb/frontends/dib3000mb.c
@@ -60,9 +60,9 @@ static int dib3000mb_set_frontend(struct dvb_frontend* fe,
60 fe_code_rate_t fe_cr = FEC_NONE; 60 fe_code_rate_t fe_cr = FEC_NONE;
61 int search_state, seq; 61 int search_state, seq;
62 62
63 if (tuner && fe->ops->tuner_ops.set_params) { 63 if (tuner && fe->ops.tuner_ops.set_params) {
64 fe->ops->tuner_ops.set_params(fe, fep); 64 fe->ops.tuner_ops.set_params(fe, fep);
65 if (fe->ops->i2c_gate_ctrl) fe->ops->i2c_gate_ctrl(fe, 0); 65 if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0);
66 66
67 deb_setf("bandwidth: "); 67 deb_setf("bandwidth: ");
68 switch (ofdm->bandwidth) { 68 switch (ofdm->bandwidth) {
@@ -705,7 +705,6 @@ struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config,
705 /* setup the state */ 705 /* setup the state */
706 state->i2c = i2c; 706 state->i2c = i2c;
707 memcpy(&state->config,config,sizeof(struct dib3000_config)); 707 memcpy(&state->config,config,sizeof(struct dib3000_config));
708 memcpy(&state->ops, &dib3000mb_ops, sizeof(struct dvb_frontend_ops));
709 708
710 /* check for the correct demod */ 709 /* check for the correct demod */
711 if (rd(DIB3000_REG_MANUFACTOR_ID) != DIB3000_I2C_ID_DIBCOM) 710 if (rd(DIB3000_REG_MANUFACTOR_ID) != DIB3000_I2C_ID_DIBCOM)
@@ -715,7 +714,7 @@ struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config,
715 goto error; 714 goto error;
716 715
717 /* create dvb_frontend */ 716 /* create dvb_frontend */
718 state->frontend.ops = &state->ops; 717 memcpy(&state->frontend.ops, &dib3000mb_ops, sizeof(struct dvb_frontend_ops));
719 state->frontend.demodulator_priv = state; 718 state->frontend.demodulator_priv = state;
720 719
721 /* set the xfer operations */ 720 /* set the xfer operations */