diff options
Diffstat (limited to 'drivers/media/dvb/ttpci')
-rw-r--r-- | drivers/media/dvb/ttpci/budget.c | 53 |
1 files changed, 30 insertions, 23 deletions
diff --git a/drivers/media/dvb/ttpci/budget.c b/drivers/media/dvb/ttpci/budget.c index f5db13d8b990..874a10a9d493 100644 --- a/drivers/media/dvb/ttpci/budget.c +++ b/drivers/media/dvb/ttpci/budget.c | |||
@@ -628,29 +628,36 @@ static void frontend_init(struct budget *budget) | |||
628 | &tt1600_stv6110x_config, | 628 | &tt1600_stv6110x_config, |
629 | &budget->i2c_adap); | 629 | &budget->i2c_adap); |
630 | 630 | ||
631 | tt1600_stv090x_config.tuner_init = ctl->tuner_init; | 631 | if (ctl) { |
632 | tt1600_stv090x_config.tuner_sleep = ctl->tuner_sleep; | 632 | tt1600_stv090x_config.tuner_init = ctl->tuner_init; |
633 | tt1600_stv090x_config.tuner_set_mode = ctl->tuner_set_mode; | 633 | tt1600_stv090x_config.tuner_sleep = ctl->tuner_sleep; |
634 | tt1600_stv090x_config.tuner_set_frequency = ctl->tuner_set_frequency; | 634 | tt1600_stv090x_config.tuner_set_mode = ctl->tuner_set_mode; |
635 | tt1600_stv090x_config.tuner_get_frequency = ctl->tuner_get_frequency; | 635 | tt1600_stv090x_config.tuner_set_frequency = ctl->tuner_set_frequency; |
636 | tt1600_stv090x_config.tuner_set_bandwidth = ctl->tuner_set_bandwidth; | 636 | tt1600_stv090x_config.tuner_get_frequency = ctl->tuner_get_frequency; |
637 | tt1600_stv090x_config.tuner_get_bandwidth = ctl->tuner_get_bandwidth; | 637 | tt1600_stv090x_config.tuner_set_bandwidth = ctl->tuner_set_bandwidth; |
638 | tt1600_stv090x_config.tuner_set_bbgain = ctl->tuner_set_bbgain; | 638 | tt1600_stv090x_config.tuner_get_bandwidth = ctl->tuner_get_bandwidth; |
639 | tt1600_stv090x_config.tuner_get_bbgain = ctl->tuner_get_bbgain; | 639 | tt1600_stv090x_config.tuner_set_bbgain = ctl->tuner_set_bbgain; |
640 | tt1600_stv090x_config.tuner_set_refclk = ctl->tuner_set_refclk; | 640 | tt1600_stv090x_config.tuner_get_bbgain = ctl->tuner_get_bbgain; |
641 | tt1600_stv090x_config.tuner_get_status = ctl->tuner_get_status; | 641 | tt1600_stv090x_config.tuner_set_refclk = ctl->tuner_set_refclk; |
642 | 642 | tt1600_stv090x_config.tuner_get_status = ctl->tuner_get_status; | |
643 | /* call the init function once to initialize | 643 | |
644 | tuner's clock output divider and demod's | 644 | /* call the init function once to initialize |
645 | master clock */ | 645 | tuner's clock output divider and demod's |
646 | if (budget->dvb_frontend->ops.init) | 646 | master clock */ |
647 | budget->dvb_frontend->ops.init(budget->dvb_frontend); | 647 | if (budget->dvb_frontend->ops.init) |
648 | 648 | budget->dvb_frontend->ops.init(budget->dvb_frontend); | |
649 | dvb_attach(isl6423_attach, | 649 | |
650 | budget->dvb_frontend, | 650 | if (dvb_attach(isl6423_attach, |
651 | &budget->i2c_adap, | 651 | budget->dvb_frontend, |
652 | &tt1600_isl6423_config); | 652 | &budget->i2c_adap, |
653 | 653 | &tt1600_isl6423_config) == NULL) { | |
654 | printk(KERN_ERR "%s: No Intersil ISL6423 found!\n", __func__); | ||
655 | goto error_out; | ||
656 | } | ||
657 | } else { | ||
658 | printk(KERN_ERR "%s: No STV6110(A) Silicon Tuner found!\n", __func__); | ||
659 | goto error_out; | ||
660 | } | ||
654 | } | 661 | } |
655 | } | 662 | } |
656 | break; | 663 | break; |