aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-dvb.h
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2008-02-09 13:44:30 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:46 -0400
commit891d99efc5be16d2762bdbb9d0486f7250990eee (patch)
tree42bf20210b0c44a43943b90acb8edae50f7ce4e2 /drivers/media/video/pvrusb2/pvrusb2-dvb.h
parenta36416d0a70899d3724d2e69e378062e06252a41 (diff)
V4L/DVB (7689): pvrusb2-dvb: Rework module tear-down
Rather than making an explicit call to tear down the pvrusb2-dvb module, use the callback in the pvr2_channel structure. This has the advantage that now tear-down only happens when it makes sense. The previous implementation had scenarios where it was possible for the tear-down call to happen without a prior initialization. Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-dvb.h')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-dvb.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-dvb.h b/drivers/media/video/pvrusb2/pvrusb2-dvb.h
index 651324ffab3d..1326f6f455a6 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-dvb.h
+++ b/drivers/media/video/pvrusb2/pvrusb2-dvb.h
@@ -27,7 +27,6 @@ struct pvr2_dvb_adapter {
27 27
28 unsigned int digital_up:1; 28 unsigned int digital_up:1;
29 unsigned int stream_run:1; 29 unsigned int stream_run:1;
30 unsigned int init:1;
31 30
32 wait_queue_head_t buffer_wait_data; 31 wait_queue_head_t buffer_wait_data;
33 char *buffer_storage[PVR2_DVB_BUFFER_COUNT]; 32 char *buffer_storage[PVR2_DVB_BUFFER_COUNT];
@@ -39,6 +38,5 @@ struct pvr2_dvb_props {
39}; 38};
40 39
41int pvr2_dvb_init(struct pvr2_context *pvr); 40int pvr2_dvb_init(struct pvr2_context *pvr);
42int pvr2_dvb_exit(struct pvr2_context *pvr);
43 41
44#endif /* __PVRUSB2_DVB_H__ */ 42#endif /* __PVRUSB2_DVB_H__ */