From: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
To: alsa-devel@alsa-project.org
Cc: ibm-acpi@hmh.eng.br,
Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.de>,
linux-kernel@vger.kernel.org
Subject: [PATCH] alsa: use subsys_initcall for sound core instead of module_init
Date: Tue, 12 Jan 2010 20:20:39 -0200 [thread overview]
Message-ID: <1263334840-6118-1-git-send-email-cascardo@holoscopio.com> (raw)
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>
---
sound/core/sound.c | 4 ++--
sound/sound_core.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/core/sound.c b/sound/core/sound.c
index 7872a02..563d196 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);
diff --git a/sound/sound_core.c b/sound/sound_core.c
index dbca7c9..7c2d677 100644
--- a/sound/sound_core.c
+++ b/sound/sound_core.c
@@ -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);
--
1.6.6
next reply other threads:[~2010-01-12 22:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-12 22:20 Thadeu Lima de Souza Cascardo [this message]
2010-01-13 6:48 ` Takashi Iwai
2010-01-14 15:53 ` Thadeu Lima de Souza Cascardo
2010-01-14 16:18 ` Takashi Iwai
2010-01-14 16:22 ` Thadeu Lima de Souza Cascardo
2010-01-14 16:31 ` Takashi Iwai
2010-01-15 14:40 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1263334840-6118-1-git-send-email-cascardo@holoscopio.com \
--to=cascardo@holoscopio.com \
--cc=alsa-devel@alsa-project.org \
--cc=ibm-acpi@hmh.eng.br \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®