From b46e4da924a68a3a4bdfa664c38b1b1d9a2dc064 Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Sun, 18 Dec 2005 18:45:21 +0000 Subject: Fix bttv sub-device unregister From: Christopher Pascoe Fixes sub-device release for BTTV. Without this, DVB modules can't be reloaded Signed-off-by: Ricardo Cerqueira --- linux/drivers/media/video/bttv-driver.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'linux/drivers') diff --git a/linux/drivers/media/video/bttv-driver.c b/linux/drivers/media/video/bttv-driver.c index eb9a46747..b5cba028f 100644 --- a/linux/drivers/media/video/bttv-driver.c +++ b/linux/drivers/media/video/bttv-driver.c @@ -1,5 +1,5 @@ /* - $Id: bttv-driver.c,v 1.82 2005/12/17 19:12:23 mchehab Exp $ + $Id: bttv-driver.c,v 1.83 2005/12/18 18:45:21 rmcc Exp $ bttv - Bt848 frame grabber driver @@ -4116,8 +4116,6 @@ static int __devinit bttv_probe(struct pci_dev *dev, #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) /* add subdevices */ - if (btv->has_remote) - bttv_sub_add_device(&btv->c, "remote"); if (bttv_tvcards[btv->c.type].has_dvb) bttv_sub_add_device(&btv->c, "dvb"); #endif @@ -4160,7 +4158,7 @@ static void __devexit bttv_remove(struct pci_dev *pci_dev) wake_up(&btv->gpioq); bttv_input_fini(btv); #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) - //bttv_sub_del_devices(&btv->c); + bttv_sub_del_devices(&btv->c); #endif /* unregister i2c_bus + input */ -- cgit v1.2.3