mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
ALSA: use subsys_initcall for sound core instead of module_init
This is needed for built-in drivers which are built before the sound directory, like thinkpad_acpi. Otherwise, registering a card fails. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
7284ce6c9f
commit
c181a13a41
2 changed files with 3 additions and 3 deletions
|
@ -468,5 +468,5 @@ static void __exit alsa_sound_exit(void)
|
|||
unregister_chrdev(major, "alsa");
|
||||
}
|
||||
|
||||
module_init(alsa_sound_init)
|
||||
module_exit(alsa_sound_exit)
|
||||
subsys_initcall(alsa_sound_init);
|
||||
module_exit(alsa_sound_exit);
|
||||
|
|
|
@ -61,7 +61,7 @@ static void __exit cleanup_soundcore(void)
|
|||
class_destroy(sound_class);
|
||||
}
|
||||
|
||||
module_init(init_soundcore);
|
||||
subsys_initcall(init_soundcore);
|
||||
module_exit(cleanup_soundcore);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue