aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2008-02-09 13:55:54 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:46 -0400
commit7dcc48fb55d18258e7db039f44a031e6828e6bad (patch)
tree09e59bf9e3c73f3763f6a71280504e6b73e1c3f4 /drivers
parent891d99efc5be16d2762bdbb9d0486f7250990eee (diff)
V4L/DVB (7690): pvrusb2-dvb: Remove digital_up flag
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-dvb.c17
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-dvb.h1
2 files changed, 6 insertions, 12 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-dvb.c b/drivers/media/video/pvrusb2/pvrusb2-dvb.c
index 38077b2c5282..f32d052ff4e6 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-dvb.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-dvb.c
@@ -293,8 +293,6 @@ static int pvr2_dvb_adapter_init(struct pvr2_dvb_adapter *adap)
293 293
294 dvb_net_init(&adap->dvb_adap, &adap->dvb_net, &adap->demux.dmx); 294 dvb_net_init(&adap->dvb_adap, &adap->dvb_net, &adap->demux.dmx);
295 295
296 adap->digital_up = 1;
297
298 return 0; 296 return 0;
299 297
300err_dmx_dev: 298err_dmx_dev:
@@ -307,15 +305,12 @@ err:
307 305
308static int pvr2_dvb_adapter_exit(struct pvr2_dvb_adapter *adap) 306static int pvr2_dvb_adapter_exit(struct pvr2_dvb_adapter *adap)
309{ 307{
310 if (adap->digital_up) { 308 printk(KERN_DEBUG "unregistering DVB devices\n");
311 printk(KERN_DEBUG "unregistering DVB devices\n"); 309 dvb_net_release(&adap->dvb_net);
312 dvb_net_release(&adap->dvb_net); 310 adap->demux.dmx.close(&adap->demux.dmx);
313 adap->demux.dmx.close(&adap->demux.dmx); 311 dvb_dmxdev_release(&adap->dmxdev);
314 dvb_dmxdev_release(&adap->dmxdev); 312 dvb_dmx_release(&adap->demux);
315 dvb_dmx_release(&adap->demux); 313 dvb_unregister_adapter(&adap->dvb_adap);
316 dvb_unregister_adapter(&adap->dvb_adap);
317 adap->digital_up = 0;
318 }
319 return 0; 314 return 0;
320} 315}
321 316
diff --git a/drivers/media/video/pvrusb2/pvrusb2-dvb.h b/drivers/media/video/pvrusb2/pvrusb2-dvb.h
index 1326f6f455a6..e37cb7bc2fc6 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-dvb.h
+++ b/drivers/media/video/pvrusb2/pvrusb2-dvb.h
@@ -25,7 +25,6 @@ struct pvr2_dvb_adapter {
25 struct task_struct *thread; 25 struct task_struct *thread;
26 struct mutex lock; 26 struct mutex lock;
27 27
28 unsigned int digital_up:1;
29 unsigned int stream_run:1; 28 unsigned int stream_run:1;
30 29
31 wait_queue_head_t buffer_wait_data; 30 wait_queue_head_t buffer_wait_data;