Skip to content

Commit f5f6bff

Browse files
b-rad-NDigregkh
authored andcommitted
media: lgdt3306a: Fix module count mismatch on usb unplug
[ Upstream commit 835d661 ] 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> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f3f3442 commit f5f6bff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/media/dvb-frontends/lgdt3306a.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2168,7 +2168,7 @@ static int lgdt3306a_probe(struct i2c_client *client,
21682168
sizeof(struct lgdt3306a_config));
21692169

21702170
config->i2c_addr = client->addr;
2171-
fe = lgdt3306a_attach(config, client->adapter);
2171+
fe = dvb_attach(lgdt3306a_attach, config, client->adapter);
21722172
if (fe == NULL) {
21732173
ret = -ENODEV;
21742174
goto err_fe;

0 commit comments

Comments
 (0)