From: David Brownell <david-b@pacbell.net>
To: Andrew Morton <akpm@linux-foundation.org>,
perex@perex.cz, lkml <linux-kernel@vger.kernel.org>,
liam.girdwood@wolfsonmicro.com,
broonie@opensource.wolfsonmicro.com
Cc: kay.sievers@vrfy.org
Subject: [patch 2.6.25-rc9] sound: fix platform driver hotplug/coldplug
Date: Sun, 13 Apr 2008 11:20:40 -0700 [thread overview]
Message-ID: <200804131120.41027.david-b@pacbell.net> (raw)
From: Kay Sievers <kay.sievers@vrfy.org>
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform
modalias is prefixed with "platform:". Add MODULE_ALIAS() to the
hotpluggable sound platform drivers, to re-enable auto loading.
[ dbrownell@users.sourceforge.net: more drivers, registration fixes ]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
NOTE: not sent to subscribers-only list: alsa-devel@alsa-project.org
sound/arm/pxa2xx-ac97.c | 2 ++
sound/drivers/ml403-ac97cr.c | 4 ++++
sound/soc/soc-core.c | 2 ++
3 files changed, 8 insertions(+)
--- g26.orig/sound/arm/pxa2xx-ac97.c 2008-04-13 10:30:20.000000000 -0700
+++ g26/sound/arm/pxa2xx-ac97.c 2008-04-13 10:33:22.000000000 -0700
@@ -391,6 +391,7 @@ static struct platform_driver pxa2xx_ac9
.resume = pxa2xx_ac97_resume,
.driver = {
.name = "pxa2xx-ac97",
+ .owner = THIS_MODULE,
},
};
@@ -410,3 +411,4 @@ module_exit(pxa2xx_ac97_exit);
MODULE_AUTHOR("Nicolas Pitre");
MODULE_DESCRIPTION("AC97 driver for the Intel PXA2xx chip");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:pxa2xx-ac97");
--- g26.orig/sound/drivers/ml403-ac97cr.c 2008-04-13 10:32:22.000000000 -0700
+++ g26/sound/drivers/ml403-ac97cr.c 2008-04-13 10:36:29.000000000 -0700
@@ -1330,11 +1330,15 @@ static int snd_ml403_ac97cr_remove(struc
return 0;
}
+/* work with hotplug and coldplug */
+MODULE_ALIAS("platform:" SND_ML403_AC97CR_DRIVER);
+
static struct platform_driver snd_ml403_ac97cr_driver = {
.probe = snd_ml403_ac97cr_probe,
.remove = snd_ml403_ac97cr_remove,
.driver = {
.name = SND_ML403_AC97CR_DRIVER,
+ .owner = THIS_MODULE,
},
};
--- g26.orig/sound/soc/soc-core.c 2008-04-13 10:30:20.000000000 -0700
+++ g26/sound/soc/soc-core.c 2008-04-13 10:34:04.000000000 -0700
@@ -839,6 +839,7 @@ static int soc_remove(struct platform_de
static struct platform_driver soc_driver = {
.driver = {
.name = "soc-audio",
+ .owner = THIS_MODULE,
},
.probe = soc_probe,
.remove = soc_remove,
@@ -1601,3 +1602,4 @@ module_exit(snd_soc_exit);
MODULE_AUTHOR("Liam Girdwood, liam.girdwood@wolfsonmicro.com, www.wolfsonmicro.com");
MODULE_DESCRIPTION("ALSA SoC Core");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:soc-audio");
reply other threads:[~2008-04-13 18:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200804131120.41027.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=akpm@linux-foundation.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=kay.sievers@vrfy.org \
--cc=liam.girdwood@wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
/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®