]> err.no Git - linux-2.6/commitdiff
V4L/DVB (4011): Fix PLL refactoring breakage to WinTV NOVA T USB 2 driver
authorAndrew de Quincey <adq_dvb@lidskialf.net>
Fri, 12 May 2006 23:31:51 +0000 (20:31 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 25 Jun 2006 05:00:20 +0000 (02:00 -0300)
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>
drivers/media/dvb/dvb-usb/dibusb-common.c

index b0435c8f82fd076b1da39f74ed55c6ea642e6002..99279f963d6fa0270a153f4a50f3221abc9d0514 100644 (file)
@@ -173,11 +173,10 @@ int dibusb_dib3000mc_frontend_attach(struct dvb_usb_device *d)
        struct dib3000_config demod_cfg;
        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++)
                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;
                        return 0;
                }