aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/pluto2/pluto2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/pluto2/pluto2.c')
-rw-r--r--drivers/media/dvb/pluto2/pluto2.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/media/dvb/pluto2/pluto2.c b/drivers/media/dvb/pluto2/pluto2.c
index 1c5316e209e..acabea0793b 100644
--- a/drivers/media/dvb/pluto2/pluto2.c
+++ b/drivers/media/dvb/pluto2/pluto2.c
@@ -424,8 +424,8 @@ static inline u32 divide(u32 numerator, u32 denominator)
424} 424}
425 425
426/* LG Innotek TDTE-E001P (Infineon TUA6034) */ 426/* LG Innotek TDTE-E001P (Infineon TUA6034) */
427static int lg_tdtpe001p_pll_set(struct dvb_frontend *fe, 427static int lg_tdtpe001p_tuner_set_params(struct dvb_frontend *fe,
428 struct dvb_frontend_parameters *p) 428 struct dvb_frontend_parameters *p)
429{ 429{
430 struct pluto *pluto = frontend_to_pluto(fe); 430 struct pluto *pluto = frontend_to_pluto(fe);
431 struct i2c_msg msg; 431 struct i2c_msg msg;
@@ -473,6 +473,8 @@ static int lg_tdtpe001p_pll_set(struct dvb_frontend *fe,
473 msg.buf = buf; 473 msg.buf = buf;
474 msg.len = sizeof(buf); 474 msg.len = sizeof(buf);
475 475
476 if (fe->ops.i2c_gate_ctrl)
477 fe->ops.i2c_gate_ctrl(fe, 1);
476 ret = i2c_transfer(&pluto->i2c_adap, &msg, 1); 478 ret = i2c_transfer(&pluto->i2c_adap, &msg, 1);
477 if (ret < 0) 479 if (ret < 0)
478 return ret; 480 return ret;
@@ -497,8 +499,6 @@ static struct tda1004x_config pluto2_fe_config __devinitdata = {
497 .xtal_freq = TDA10046_XTAL_16M, 499 .xtal_freq = TDA10046_XTAL_16M,
498 .agc_config = TDA10046_AGC_DEFAULT, 500 .agc_config = TDA10046_AGC_DEFAULT,
499 .if_freq = TDA10046_FREQ_3617, 501 .if_freq = TDA10046_FREQ_3617,
500 .pll_set = lg_tdtpe001p_pll_set,
501 .pll_sleep = NULL,
502 .request_firmware = pluto2_request_firmware, 502 .request_firmware = pluto2_request_firmware,
503}; 503};
504 504
@@ -511,11 +511,12 @@ static int __devinit frontend_init(struct pluto *pluto)
511 dev_err(&pluto->pdev->dev, "could not attach frontend\n"); 511 dev_err(&pluto->pdev->dev, "could not attach frontend\n");
512 return -ENODEV; 512 return -ENODEV;
513 } 513 }
514 pluto->fe->ops.tuner_ops.set_params = lg_tdtpe001p_tuner_set_params;
514 515
515 ret = dvb_register_frontend(&pluto->dvb_adapter, pluto->fe); 516 ret = dvb_register_frontend(&pluto->dvb_adapter, pluto->fe);
516 if (ret < 0) { 517 if (ret < 0) {
517 if (pluto->fe->ops->release) 518 if (pluto->fe->ops.release)
518 pluto->fe->ops->release(pluto->fe); 519 pluto->fe->ops.release(pluto->fe);
519 return ret; 520 return ret;
520 } 521 }
521 522
@@ -647,7 +648,7 @@ static int __devinit pluto2_probe(struct pci_dev *pdev,
647 goto err_pluto_hw_exit; 648 goto err_pluto_hw_exit;
648 649
649 /* dvb */ 650 /* dvb */
650 ret = dvb_register_adapter(&pluto->dvb_adapter, DRIVER_NAME, THIS_MODULE); 651 ret = dvb_register_adapter(&pluto->dvb_adapter, DRIVER_NAME, THIS_MODULE, &pdev->dev);
651 if (ret < 0) 652 if (ret < 0)
652 goto err_i2c_bit_del_bus; 653 goto err_i2c_bit_del_bus;
653 654