mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
media: lgdt3306a: Fix module count mismatch on usb unplug
When used as an i2c device there is a module usage count mismatch on removal, preventing the driver from being used thereafter. dvb_attach increments the usage count so it is properly balanced on removal. On disconnect of Hauppauge SoloHD/DualHD before: lsmod | grep lgdt3306a lgdt3306a 28672 -1 i2c_mux 16384 1 lgdt3306a On disconnect of Hauppauge SoloHD/DualHD after: lsmod | grep lgdt3306a lgdt3306a 28672 0 i2c_mux 16384 1 lgdt3306a Signed-off-by: Brad Love <brad@nextdimension.cc> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
4966c0c5c6
commit
835d66173a
1 changed files with 1 additions and 1 deletions
|
@ -2215,7 +2215,7 @@ static int lgdt3306a_probe(struct i2c_client *client,
|
|||
sizeof(struct lgdt3306a_config));
|
||||
|
||||
config->i2c_addr = client->addr;
|
||||
fe = lgdt3306a_attach(config, client->adapter);
|
||||
fe = dvb_attach(lgdt3306a_attach, config, client->adapter);
|
||||
if (fe == NULL) {
|
||||
ret = -ENODEV;
|
||||
goto err_fe;
|
||||
|
|
Loading…
Reference in a new issue