ASoC: Move soc-core module init next to functon definition
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 12 Oct 2010 16:41:03 +0000 (17:41 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Oct 2010 10:01:49 +0000 (11:01 +0100)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/soc-core.c

index 7d22b5d5bc0dc7a9496a30c05855371c62c08139..225b5bd2802ecdc7adec9bc66a746120cbbbbcb5 100644 (file)
@@ -3306,6 +3306,7 @@ static int __init snd_soc_init(void)
 
        return platform_driver_register(&soc_driver);
 }
+module_init(snd_soc_init);
 
 static void __exit snd_soc_exit(void)
 {
@@ -3314,8 +3315,6 @@ static void __exit snd_soc_exit(void)
 #endif
        platform_driver_unregister(&soc_driver);
 }
-
-module_init(snd_soc_init);
 module_exit(snd_soc_exit);
 
 /* Module information */