diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-24 14:21:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-24 14:21:08 -0400 |
commit | c328d54cd4ad120d76284e46dcca6c6cf996154a (patch) | |
tree | 104c023be66faa5fce6e0a56c0a6d13c62fd21e5 /drivers/media/video/pvrusb2/pvrusb2-main.c | |
parent | 346ad4b7fe392571f19314f153db9151dbc1d82b (diff) | |
parent | b0166ab3a6ae6d7af8d9a21a7836154963c69a11 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (452 commits)
V4L/DVB (7731): tuner-xc2028: fix signal strength calculus
V4L/DVB (7730): tuner-xc2028: Fix SCODE load for MTS firmwares
V4L/DVB (7729): Fix VIDIOCGAP corruption in ivtv
V4L/DVB (7728): tea5761: bugzilla #10462: tea5761 autodetection code were broken
V4L/DVB (7726): cx23885: Enable cx23417 support on the HVR1800
V4L/DVB (7725): cx23885: Add generic cx23417 hardware encoder support
V4L/DVB (7723): pvrusb2: Clean up input selection list generation in V4L interface
V4L/DVB (7722): pvrusb2: Implement FM radio support for Gotview USB2.0 DVD 2
V4L/DVB (7721): pvrusb2: Restructure cx23416 firmware loading to have a common exit point
V4L/DVB (7720): pvrusb2: Fix bad error code on cx23416 firmware load failure
V4L/DVB (7719): pvrusb2: Implement input selection enforcement
V4L/DVB (7718): pvrusb2-dvb: update Kbuild selections
V4L/DVB (7717): pvrusb2-dvb: add DVB-T support for Hauppauge pvrusb2 model 73xxx
V4L/DVB (7716): pvrusb2: clean up global functions
V4L/DVB (7715): pvrusb2: Clean out all use of __FUNCTION__
V4L/DVB (7714): pvrusb2: Fix hang on module removal
V4L/DVB (7713): pvrusb2: Implement cleaner DVB kernel thread shutdown
V4L/DVB (7712): pvrusb2: Close connect/disconnect race
V4L/DVB (7711): pvrusb2: Fix race on module unload
V4L/DVB (7710): pvrusb2: Implement critical digital streaming quirk for onair devices
...
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-main.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-main.c b/drivers/media/video/pvrusb2/pvrusb2-main.c index b63b2265503a..332aced8a5a1 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-main.c +++ b/drivers/media/video/pvrusb2/pvrusb2-main.c | |||
@@ -60,6 +60,10 @@ static void pvr_setup_attach(struct pvr2_context *pvr) | |||
60 | { | 60 | { |
61 | /* Create association with v4l layer */ | 61 | /* Create association with v4l layer */ |
62 | pvr2_v4l2_create(pvr); | 62 | pvr2_v4l2_create(pvr); |
63 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB | ||
64 | /* Create association with dvb layer */ | ||
65 | pvr2_dvb_create(pvr); | ||
66 | #endif | ||
63 | #ifdef CONFIG_VIDEO_PVRUSB2_SYSFS | 67 | #ifdef CONFIG_VIDEO_PVRUSB2_SYSFS |
64 | pvr2_sysfs_create(pvr,class_ptr); | 68 | pvr2_sysfs_create(pvr,class_ptr); |
65 | #endif /* CONFIG_VIDEO_PVRUSB2_SYSFS */ | 69 | #endif /* CONFIG_VIDEO_PVRUSB2_SYSFS */ |
@@ -121,6 +125,12 @@ static int __init pvr_init(void) | |||
121 | 125 | ||
122 | pvr2_trace(PVR2_TRACE_INIT,"pvr_init"); | 126 | pvr2_trace(PVR2_TRACE_INIT,"pvr_init"); |
123 | 127 | ||
128 | ret = pvr2_context_global_init(); | ||
129 | if (ret != 0) { | ||
130 | pvr2_trace(PVR2_TRACE_INIT,"pvr_init failure code=%d",ret); | ||
131 | return ret; | ||
132 | } | ||
133 | |||
124 | #ifdef CONFIG_VIDEO_PVRUSB2_SYSFS | 134 | #ifdef CONFIG_VIDEO_PVRUSB2_SYSFS |
125 | class_ptr = pvr2_sysfs_class_create(); | 135 | class_ptr = pvr2_sysfs_class_create(); |
126 | #endif /* CONFIG_VIDEO_PVRUSB2_SYSFS */ | 136 | #endif /* CONFIG_VIDEO_PVRUSB2_SYSFS */ |
@@ -132,6 +142,8 @@ static int __init pvr_init(void) | |||
132 | if (pvrusb2_debug) info("Debug mask is %d (0x%x)", | 142 | if (pvrusb2_debug) info("Debug mask is %d (0x%x)", |
133 | pvrusb2_debug,pvrusb2_debug); | 143 | pvrusb2_debug,pvrusb2_debug); |
134 | 144 | ||
145 | pvr2_trace(PVR2_TRACE_INIT,"pvr_init complete"); | ||
146 | |||
135 | return ret; | 147 | return ret; |
136 | } | 148 | } |
137 | 149 | ||
@@ -144,6 +156,10 @@ static void __exit pvr_exit(void) | |||
144 | #ifdef CONFIG_VIDEO_PVRUSB2_SYSFS | 156 | #ifdef CONFIG_VIDEO_PVRUSB2_SYSFS |
145 | pvr2_sysfs_class_destroy(class_ptr); | 157 | pvr2_sysfs_class_destroy(class_ptr); |
146 | #endif /* CONFIG_VIDEO_PVRUSB2_SYSFS */ | 158 | #endif /* CONFIG_VIDEO_PVRUSB2_SYSFS */ |
159 | |||
160 | pvr2_context_global_done(); | ||
161 | |||
162 | pvr2_trace(PVR2_TRACE_INIT,"pvr_exit complete"); | ||
147 | } | 163 | } |
148 | 164 | ||
149 | module_init(pvr_init); | 165 | module_init(pvr_init); |