Commit c181a13a authored by Thadeu Lima de Souza Cascardo's avatar Thadeu Lima de Souza Cascardo Committed by Takashi Iwai

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: default avatarThadeu Lima de Souza Cascardo <>
Signed-off-by: default avatarTakashi Iwai <>
parent 7284ce6c
...@@ -468,5 +468,5 @@ static void __exit alsa_sound_exit(void) ...@@ -468,5 +468,5 @@ static void __exit alsa_sound_exit(void)
unregister_chrdev(major, "alsa"); unregister_chrdev(major, "alsa");
} }
module_init(alsa_sound_init) subsys_initcall(alsa_sound_init);
module_exit(alsa_sound_exit) module_exit(alsa_sound_exit);
...@@ -61,7 +61,7 @@ static void __exit cleanup_soundcore(void) ...@@ -61,7 +61,7 @@ static void __exit cleanup_soundcore(void)
class_destroy(sound_class); class_destroy(sound_class);
} }
module_init(init_soundcore); subsys_initcall(init_soundcore);
module_exit(cleanup_soundcore); module_exit(cleanup_soundcore);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment