mirror of https://gitee.com/openkylin/linux.git
ASoC: Move soc-core module init next to functon definition
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
8c7f78b3c3
commit
4abe8e16a8
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue