Commit 889aee80 authored by Christopher Pascoe's avatar Christopher Pascoe Committed by Mauro Carvalho Chehab

V4L/DVB (3192): Fix bttv sub-device unregister


- Fixes sub-device release for BTTV. Without this, DVB modules can't be reloaded
Signed-off-by: default avatarRicardo Cerqueira <v4l@cerqueira.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
parent e18828e4
...@@ -4075,8 +4075,6 @@ static int __devinit bttv_probe(struct pci_dev *dev, ...@@ -4075,8 +4075,6 @@ static int __devinit bttv_probe(struct pci_dev *dev,
} }
/* add subdevices */ /* add subdevices */
if (btv->has_remote)
bttv_sub_add_device(&btv->c, "remote");
if (bttv_tvcards[btv->c.type].has_dvb) if (bttv_tvcards[btv->c.type].has_dvb)
bttv_sub_add_device(&btv->c, "dvb"); bttv_sub_add_device(&btv->c, "dvb");
...@@ -4117,7 +4115,7 @@ static void __devexit bttv_remove(struct pci_dev *pci_dev) ...@@ -4117,7 +4115,7 @@ static void __devexit bttv_remove(struct pci_dev *pci_dev)
btv->shutdown=1; btv->shutdown=1;
wake_up(&btv->gpioq); wake_up(&btv->gpioq);
bttv_input_fini(btv); bttv_input_fini(btv);
//bttv_sub_del_devices(&btv->c); bttv_sub_del_devices(&btv->c);
/* unregister i2c_bus + input */ /* unregister i2c_bus + input */
fini_bttv_i2c(btv); fini_bttv_i2c(btv);
......
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