diff options
author | Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com> | 2010-01-12 23:20:39 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-01-14 21:21:47 +0100 |
commit | c181a13a41ef32c9037393f4b42b780e1a36eb91 (patch) | |
tree | 384652a93f64c254757c5cddbefe92fa10ce1a69 /sound/core/sound.c | |
parent | Linux 2.6.33-rc4 (diff) | |
download | linux-c181a13a41ef32c9037393f4b42b780e1a36eb91.tar.xz linux-c181a13a41ef32c9037393f4b42b780e1a36eb91.zip |
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>
Diffstat (limited to 'sound/core/sound.c')
-rw-r--r-- | sound/core/sound.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/sound.c b/sound/core/sound.c index 7872a02f6ca9..563d1967a0ad 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c @@ -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); |