Skip to contentSkip to conversation

ASoC: Move soc-core module init next to functon definition

PATCH In review Mark Brown 2 participants 3 messages Oct 13, 2010 – Oct 15, 2010

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Move soc-core module init next to functon definition

---
 sound/soc/soc-core.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
sound/soc/soc-core.c +1 -2
index f4286ab..4cbfe46 100644
@@ -3311,6 +3311,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)
 {
@@ -3319,8 +3320,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 */
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 18 lines · Mark Brown
---
 sound/soc/soc-core.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
sound/soc/soc-core.c +1 -0
index f4286ab..4cbfe46 100644
@@ -3311,6 +3311,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)
 {

sound/soc/soc-core.c static void __exit snd_soc_exit(void) · line 3325

Quoted 8 lines
sound/soc/soc-core.c +0 -2
@@ -3319,8 +3320,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 */
Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk