aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134
diff options
context:
space:
mode:
authorReimar Doeffinger <Reimar.Doeffinger@stud.uni-karlsruhe.de>2005-12-01 03:51:39 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-12-01 18:48:58 -0500
commitfd1eab73d50258b4c622b8dc23d896abd5cff2e6 (patch)
treee770702e5119803503f6c13dfd071169cbd3f308 /drivers/media/video/saa7134
parent1bcd2a36711e6a72802a92a4e3fcef9d0c59dc3f (diff)
[PATCH] V4L: Fix crash when not compiled as module
Fix crash when not compiled as module. Signed-off-by: Reimar Doeffinger <Reimar.Doeffinger@stud.uni-karlsruhe.de> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/saa7134')
-rw-r--r--drivers/media/video/saa7134/saa7134-core.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/media/video/saa7134/saa7134-core.c b/drivers/media/video/saa7134/saa7134-core.c
index 0aca7229f3ce..1a093bf176f3 100644
--- a/drivers/media/video/saa7134/saa7134-core.c
+++ b/drivers/media/video/saa7134/saa7134-core.c
@@ -187,8 +187,7 @@ void saa7134_track_gpio(struct saa7134_dev *dev, char *msg)
187/* ----------------------------------------------------------- */ 187/* ----------------------------------------------------------- */
188/* delayed request_module */ 188/* delayed request_module */
189 189
190#ifdef CONFIG_MODULES 190#if defined(CONFIG_MODULES) && defined(MODULE)
191
192static int need_empress; 191static int need_empress;
193static int need_dvb; 192static int need_dvb;
194static int need_alsa; 193static int need_alsa;
@@ -237,9 +236,7 @@ static void request_module_depend(char *name, int *flag)
237} 236}
238 237
239#else 238#else
240
241#define request_module_depend(name,flag) 239#define request_module_depend(name,flag)
242
243#endif /* CONFIG_MODULES */ 240#endif /* CONFIG_MODULES */
244 241
245/* ------------------------------------------------------------------ */ 242/* ------------------------------------------------------------------ */
@@ -1163,10 +1160,10 @@ static int saa7134_init(void)
1163 1160
1164static void saa7134_fini(void) 1161static void saa7134_fini(void)
1165{ 1162{
1166#ifdef CONFIG_MODULES 1163#if defined(CONFIG_MODULES) && defined(MODULE)
1167 if (pending_registered) 1164 if (pending_registered)
1168 unregister_module_notifier(&pending_notifier); 1165 unregister_module_notifier(&pending_notifier);
1169#endif 1166#endif /* CONFIG_MODULES */
1170 pci_unregister_driver(&saa7134_pci_driver); 1167 pci_unregister_driver(&saa7134_pci_driver);
1171} 1168}
1172 1169