Browse Source

V4L/DVB (4011): Fix PLL refactoring breakage to WinTV NOVA T USB 2 driver

The calls to set the pll ops were in the wrong place - moved them.

Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Andrew de Quincey 19 years ago
parent
commit
9a10655ffa
1 changed files with 2 additions and 3 deletions
  1. 2 3
      drivers/media/dvb/dvb-usb/dibusb-common.c

+ 2 - 3
drivers/media/dvb/dvb-usb/dibusb-common.c

@@ -173,11 +173,10 @@ int dibusb_dib3000mc_frontend_attach(struct dvb_usb_device *d)
 	struct dib3000_config demod_cfg;
 	struct dib3000_config demod_cfg;
 	struct dibusb_state *st = d->priv;
 	struct dibusb_state *st = d->priv;
 
 
-	d->fe->ops->tuner_ops.init = dvb_usb_tuner_init_i2c;
-	d->fe->ops->tuner_ops.set_params = dvb_usb_tuner_set_params_i2c;
-
 	for (demod_cfg.demod_address = 0x8; demod_cfg.demod_address < 0xd; demod_cfg.demod_address++)
 	for (demod_cfg.demod_address = 0x8; demod_cfg.demod_address < 0xd; demod_cfg.demod_address++)
 		if ((d->fe = dib3000mc_attach(&demod_cfg,&d->i2c_adap,&st->ops)) != NULL) {
 		if ((d->fe = dib3000mc_attach(&demod_cfg,&d->i2c_adap,&st->ops)) != NULL) {
+			d->fe->ops->tuner_ops.init = dvb_usb_tuner_init_i2c;
+			d->fe->ops->tuner_ops.set_params = dvb_usb_tuner_set_params_i2c;
 			d->tuner_pass_ctrl = st->ops.tuner_pass_ctrl;
 			d->tuner_pass_ctrl = st->ops.tuner_pass_ctrl;
 			return 0;
 			return 0;
 		}
 		}