[media] rtl28xxu: use master I2C adapter for slave demods
authorAntti Palosaari <crope@iki.fi>
Tue, 16 Dec 2014 14:05:08 +0000 (11:05 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 3 Feb 2015 18:16:47 +0000 (16:16 -0200)
Both mn88472 and mn88473 slave demods are connected to master I2C
bus, not the bus behind master demod I2C gate like tuners. Use
correct bus.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb-v2/rtl28xxu.c

index c2d377fa193ac4c154e53d33fff1a45bab5ec952..0d37d0c06d79d51a1181c0df828eeb346a496fc6 100644 (file)
@@ -841,7 +841,7 @@ static int rtl2832u_frontend_attach(struct dvb_usb_adapter *adap)
                        info.addr = 0x18;
                        info.platform_data = &mn88472_config;
                        request_module(info.type);
-                       client = i2c_new_device(priv->demod_i2c_adapter, &info);
+                       client = i2c_new_device(&d->i2c_adap, &info);
                        if (client == NULL || client->dev.driver == NULL) {
                                priv->slave_demod = SLAVE_DEMOD_NONE;
                                goto err_slave_demod_failed;
@@ -863,7 +863,7 @@ static int rtl2832u_frontend_attach(struct dvb_usb_adapter *adap)
                        info.addr = 0x18;
                        info.platform_data = &mn88473_config;
                        request_module(info.type);
-                       client = i2c_new_device(priv->demod_i2c_adapter, &info);
+                       client = i2c_new_device(&d->i2c_adap, &info);
                        if (client == NULL || client->dev.driver == NULL) {
                                priv->slave_demod = SLAVE_DEMOD_NONE;
                                goto err_slave_demod_failed;
This page took 0.029558 seconds and 5 git commands to generate.