diff options
author | Antti Palosaari <crope@iki.fi> | 2014-12-16 15:05:08 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-03 19:16:47 +0100 |
commit | 488be13a5e7cb0d497b1c7cb79021b4d88b82b57 (patch) | |
tree | 02ef9589fc8d91bac86f6b80d009f8bc235eb1d7 /drivers | |
parent | [media] rtl28xxu: switch SDR module to platform driver (diff) | |
download | linux-488be13a5e7cb0d497b1c7cb79021b4d88b82b57.tar.xz linux-488be13a5e7cb0d497b1c7cb79021b4d88b82b57.zip |
[media] rtl28xxu: use master I2C adapter for slave demods
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c index c2d377fa193a..0d37d0c06d79 100644 --- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c +++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c @@ -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; |