V4L/DVB (4658): Another fix because of dvb_attach
authorPatrick Boettcher <pb@linuxtv.org>
Wed, 20 Sep 2006 09:06:58 +0000 (06:06 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 3 Oct 2006 18:13:20 +0000 (15:13 -0300)
Fixed mt2060-usage with dvb_attach

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-usb/dibusb-common.c

index 76e37b5..fd3a990 100644 (file)
@@ -286,7 +286,7 @@ int dibusb_dib3000mc_tuner_attach(struct dvb_usb_adapter *adap)
        }
 
        tun_i2c = dib3000mc_get_tuner_i2c_master(adap->fe, 1);
-       if (dvb_attach(mt2060_attach, adap->fe, tun_i2c, &stk3000p_mt2060_config, if1) != NULL) {
+       if (dvb_attach(mt2060_attach, adap->fe, tun_i2c, &stk3000p_mt2060_config, if1) == NULL) {
                /* not found - use panasonic pll parameters */
                if (dvb_attach(dvb_pll_attach, adap->fe, 0x60, tun_i2c, &dvb_pll_env57h1xd5) == NULL)
                        return -ENOMEM;