diff options
Diffstat (limited to 'drivers/media/dvb/frontends/dib3000mc.c')
-rw-r--r-- | drivers/media/dvb/frontends/dib3000mc.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/media/dvb/frontends/dib3000mc.c b/drivers/media/dvb/frontends/dib3000mc.c index 3b303dbb6156..6c3be2529980 100644 --- a/drivers/media/dvb/frontends/dib3000mc.c +++ b/drivers/media/dvb/frontends/dib3000mc.c | |||
@@ -462,8 +462,9 @@ static int dib3000mc_set_frontend(struct dvb_frontend* fe, | |||
462 | int search_state,auto_val; | 462 | int search_state,auto_val; |
463 | u16 val; | 463 | u16 val; |
464 | 464 | ||
465 | if (tuner && state->config.pll_set) { /* initial call from dvb */ | 465 | if (tuner && fe->ops.tuner_ops.set_params) { /* initial call from dvb */ |
466 | state->config.pll_set(fe,fep); | 466 | fe->ops.tuner_ops.set_params(fe, fep); |
467 | if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0); | ||
467 | 468 | ||
468 | state->last_tuned_freq = fep->frequency; | 469 | state->last_tuned_freq = fep->frequency; |
469 | // if (!scanboost) { | 470 | // if (!scanboost) { |
@@ -642,9 +643,6 @@ static int dib3000mc_fe_init(struct dvb_frontend* fe, int mobile_mode) | |||
642 | 643 | ||
643 | set_or(DIB3000MC_REG_CLK_CFG_7,DIB3000MC_CLK_CFG_7_DIV_IN_OFF); | 644 | set_or(DIB3000MC_REG_CLK_CFG_7,DIB3000MC_CLK_CFG_7_DIV_IN_OFF); |
644 | 645 | ||
645 | if (state->config.pll_init) | ||
646 | state->config.pll_init(fe); | ||
647 | |||
648 | deb_info("init end\n"); | 646 | deb_info("init end\n"); |
649 | return 0; | 647 | return 0; |
650 | } | 648 | } |
@@ -839,7 +837,6 @@ struct dvb_frontend* dib3000mc_attach(const struct dib3000_config* config, | |||
839 | /* setup the state */ | 837 | /* setup the state */ |
840 | state->i2c = i2c; | 838 | state->i2c = i2c; |
841 | memcpy(&state->config,config,sizeof(struct dib3000_config)); | 839 | memcpy(&state->config,config,sizeof(struct dib3000_config)); |
842 | memcpy(&state->ops, &dib3000mc_ops, sizeof(struct dvb_frontend_ops)); | ||
843 | 840 | ||
844 | /* check for the correct demod */ | 841 | /* check for the correct demod */ |
845 | if (rd(DIB3000_REG_MANUFACTOR_ID) != DIB3000_I2C_ID_DIBCOM) | 842 | if (rd(DIB3000_REG_MANUFACTOR_ID) != DIB3000_I2C_ID_DIBCOM) |
@@ -859,7 +856,7 @@ struct dvb_frontend* dib3000mc_attach(const struct dib3000_config* config, | |||
859 | } | 856 | } |
860 | 857 | ||
861 | /* create dvb_frontend */ | 858 | /* create dvb_frontend */ |
862 | state->frontend.ops = &state->ops; | 859 | memcpy(&state->frontend.ops, &dib3000mc_ops, sizeof(struct dvb_frontend_ops)); |
863 | state->frontend.demodulator_priv = state; | 860 | state->frontend.demodulator_priv = state; |
864 | 861 | ||
865 | /* set the xfer operations */ | 862 | /* set the xfer operations */ |
@@ -876,6 +873,7 @@ error: | |||
876 | kfree(state); | 873 | kfree(state); |
877 | return NULL; | 874 | return NULL; |
878 | } | 875 | } |
876 | EXPORT_SYMBOL(dib3000mc_attach); | ||
879 | 877 | ||
880 | static struct dvb_frontend_ops dib3000mc_ops = { | 878 | static struct dvb_frontend_ops dib3000mc_ops = { |
881 | 879 | ||
@@ -914,5 +912,3 @@ static struct dvb_frontend_ops dib3000mc_ops = { | |||
914 | MODULE_AUTHOR(DRIVER_AUTHOR); | 912 | MODULE_AUTHOR(DRIVER_AUTHOR); |
915 | MODULE_DESCRIPTION(DRIVER_DESC); | 913 | MODULE_DESCRIPTION(DRIVER_DESC); |
916 | MODULE_LICENSE("GPL"); | 914 | MODULE_LICENSE("GPL"); |
917 | |||
918 | EXPORT_SYMBOL(dib3000mc_attach); | ||