]> err.no Git - linux-2.6/commitdiff
V4L/DVB (7690): pvrusb2-dvb: Remove digital_up flag
authorMike Isely <isely@pobox.com>
Sat, 9 Feb 2008 18:55:54 +0000 (15:55 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:09:46 +0000 (14:09 -0300)
Other pvrusb2-dvb changes have made the digital_up flag obsolete.  So
kill it.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-dvb.c
drivers/media/video/pvrusb2/pvrusb2-dvb.h

index 38077b2c52829f0deab11d2be0f7f5bfbaa5ed62..f32d052ff4e64ecd544bc7c8fb6f44f818c95f24 100644 (file)
@@ -293,8 +293,6 @@ static int pvr2_dvb_adapter_init(struct pvr2_dvb_adapter *adap)
 
        dvb_net_init(&adap->dvb_adap, &adap->dvb_net, &adap->demux.dmx);
 
-       adap->digital_up = 1;
-
        return 0;
 
 err_dmx_dev:
@@ -307,15 +305,12 @@ err:
 
 static int pvr2_dvb_adapter_exit(struct pvr2_dvb_adapter *adap)
 {
-       if (adap->digital_up) {
-               printk(KERN_DEBUG "unregistering DVB devices\n");
-               dvb_net_release(&adap->dvb_net);
-               adap->demux.dmx.close(&adap->demux.dmx);
-               dvb_dmxdev_release(&adap->dmxdev);
-               dvb_dmx_release(&adap->demux);
-               dvb_unregister_adapter(&adap->dvb_adap);
-               adap->digital_up = 0;
-       }
+       printk(KERN_DEBUG "unregistering DVB devices\n");
+       dvb_net_release(&adap->dvb_net);
+       adap->demux.dmx.close(&adap->demux.dmx);
+       dvb_dmxdev_release(&adap->dmxdev);
+       dvb_dmx_release(&adap->demux);
+       dvb_unregister_adapter(&adap->dvb_adap);
        return 0;
 }
 
index 1326f6f455a6b4ff59f6db589aa124f15e8f98f6..e37cb7bc2fc6bc962963ca64950f339fbac326b3 100644 (file)
@@ -25,7 +25,6 @@ struct pvr2_dvb_adapter {
        struct task_struct      *thread;
        struct mutex            lock;
 
-       unsigned int            digital_up:1;
        unsigned int            stream_run:1;
 
        wait_queue_head_t       buffer_wait_data;