summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-03-15 09:31:31 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-03-15 09:31:31 -0300
commitedc73d98e1fc219ff5fbf00eb21937fa2945cd16 (patch)
tree647bd45caf56712aef1602d073cae7d22f57aa5d /linux/drivers/media/dvb
parent49c7ae95a0e651f7e2186509d62e7eb21ff6154c (diff)
downloadmediapointer-dvb-s2-edc73d98e1fc219ff5fbf00eb21937fa2945cd16.tar.gz
mediapointer-dvb-s2-edc73d98e1fc219ff5fbf00eb21937fa2945cd16.tar.bz2
Cinergy T2 dmx cleanup on disconnect
From: Markus Rechberger <mrechberger@gmail.com> Detaching the device didn't clean up several device files in /dev/dvb, after applying that patch all dvb devices disappeared as expected. Signed-off-by: Markus Rechberger <mrechberger@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/cinergyT2/cinergyT2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
index 10ed8b8c0..57ab7b0f3 100644
--- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -523,6 +523,9 @@ static int cinergyt2_open (struct inode *inode, struct file *file)
static void cinergyt2_unregister(struct cinergyt2 *cinergyt2)
{
+ dvb_net_release(&cinergyt2->dvbnet);
+ dvb_dmxdev_release(&cinergyt2->dmxdev);
+ dvb_dmx_release(&cinergyt2->demux);
dvb_unregister_device(cinergyt2->fedev);
dvb_unregister_adapter(&cinergyt2->adapter);
@@ -955,6 +958,7 @@ static int cinergyt2_probe (struct usb_interface *intf,
return 0;
bailout:
+ dvb_net_release(&cinergyt2->dvbnet);
dvb_dmxdev_release(&cinergyt2->dmxdev);
dvb_dmx_release(&cinergyt2->demux);
dvb_unregister_adapter(&cinergyt2->adapter);