Commit 7098f582 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] em28xx: add support for DVB SEC I2C client

Add support for DVB SEC (satellite equipment controller) I2C client.
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent b561baec
...@@ -96,6 +96,7 @@ struct em28xx_dvb { ...@@ -96,6 +96,7 @@ struct em28xx_dvb {
int lna_gpio; int lna_gpio;
struct i2c_client *i2c_client_demod; struct i2c_client *i2c_client_demod;
struct i2c_client *i2c_client_tuner; struct i2c_client *i2c_client_tuner;
struct i2c_client *i2c_client_sec;
}; };
static inline void print_err_status(struct em28xx *dev, static inline void print_err_status(struct em28xx *dev,
...@@ -1729,7 +1730,6 @@ static int em28xx_dvb_fini(struct em28xx *dev) ...@@ -1729,7 +1730,6 @@ static int em28xx_dvb_fini(struct em28xx *dev)
em28xx_info("Closing DVB extension\n"); em28xx_info("Closing DVB extension\n");
dvb = dev->dvb; dvb = dev->dvb;
client = dvb->i2c_client_tuner;
em28xx_uninit_usb_xfer(dev, EM28XX_DIGITAL_MODE); em28xx_uninit_usb_xfer(dev, EM28XX_DIGITAL_MODE);
...@@ -1746,7 +1746,15 @@ static int em28xx_dvb_fini(struct em28xx *dev) ...@@ -1746,7 +1746,15 @@ static int em28xx_dvb_fini(struct em28xx *dev)
} }
} }
/* remove I2C SEC */
client = dvb->i2c_client_sec;
if (client) {
module_put(client->dev.driver->owner);
i2c_unregister_device(client);
}
/* remove I2C tuner */ /* remove I2C tuner */
client = dvb->i2c_client_tuner;
if (client) { if (client) {
module_put(client->dev.driver->owner); module_put(client->dev.driver->owner);
i2c_unregister_device(client); i2c_unregister_device(client);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment