]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Initialize drivers/media/video/saa7134 late
authorLinus Torvalds <torvalds@g5.osdl.org>
Wed, 21 Dec 2005 22:52:32 +0000 (14:52 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 21 Dec 2005 22:52:32 +0000 (14:52 -0800)
When compiled-in, make sure the sound system has initialized
before these drivers do.

Reported by Adrian Bunk <bunk@stusta.de>

(The right fix would be to make the sound core use "subsys_initcall()"
and thus initialize before all normal drivers, but this is the quick
and limited safe fix for 2.6.15).

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/video/saa7134/saa7134-alsa.c
drivers/media/video/saa7134/saa7134-oss.c

index 953d5fec82d515d23a8efe953dd78044e5f8f29d..6752dd1c1e8a48c4401fc2aa511657603fb78f77 100644 (file)
@@ -1028,7 +1028,8 @@ static void saa7134_alsa_exit(void)
        return;
 }
 
-module_init(saa7134_alsa_init);
+/* We initialize this late, to make sure the sound system is up and running */
+late_initcall(saa7134_alsa_init);
 module_exit(saa7134_alsa_exit);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Ricardo Cerqueira");
index 513a699a6df2a300c7c22bd3ea842509f4306441..c450d57b294971bfaff29e6024c6a99fc42fe8ff 100644 (file)
@@ -1002,7 +1002,8 @@ static void saa7134_oss_exit(void)
        return;
 }
 
-module_init(saa7134_oss_init);
+/* We initialize this late, to make sure the sound system is up and running */
+late_initcall(saa7134_oss_init);
 module_exit(saa7134_oss_exit);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]");