From: David Brownell <david-b@pacbell.net>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kay.sievers@vrfy.org, lkml <linux-kernel@vger.kernel.org>
Subject: [patch 2.6.25-rc9] misc: fix platform driver hotplug/coldplug
Date: Sun, 13 Apr 2008 10:06:52 -0700 [thread overview]
Message-ID: <200804131006.52988.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 'misc' platform drivers, to re-enable auto loading.
[ dbrownell@users.sourceforge.net: bugfix, registration fixes ]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
drivers/misc/atmel-ssc.c | 2 ++
drivers/misc/atmel_pwm.c | 1 +
drivers/misc/hdpuftrs/hdpu_cpustate.c | 2 ++
drivers/misc/hdpuftrs/hdpu_nexus.c | 2 ++
4 files changed, 7 insertions(+)
--- g26.orig/drivers/misc/atmel-ssc.c 2008-04-12 21:25:41.000000000 -0700
+++ g26/drivers/misc/atmel-ssc.c 2008-04-12 21:27:37.000000000 -0700
@@ -154,6 +154,7 @@ static struct platform_driver ssc_driver
.remove = __devexit_p(ssc_remove),
.driver = {
.name = "ssc",
+ .owner = THIS_MODULE,
},
};
@@ -172,3 +173,4 @@ module_exit(ssc_exit);
MODULE_AUTHOR("Hans-Christian Egtvedt <hcegtvedt@atmel.com>");
MODULE_DESCRIPTION("SSC driver for Atmel AVR32 and AT91");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:ssc");
--- g26.orig/drivers/misc/atmel_pwm.c 2008-04-12 21:25:41.000000000 -0700
+++ g26/drivers/misc/atmel_pwm.c 2008-04-12 21:26:11.000000000 -0700
@@ -407,3 +407,4 @@ module_exit(pwm_exit);
MODULE_DESCRIPTION("Driver for AT32/AT91 PWM module");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:atmel_pwm");
--- g26.orig/drivers/misc/hdpuftrs/hdpu_cpustate.c 2008-04-12 21:25:41.000000000 -0700
+++ g26/drivers/misc/hdpuftrs/hdpu_cpustate.c 2008-04-12 21:49:25.000000000 -0700
@@ -164,6 +164,7 @@ static struct platform_driver hdpu_cpust
.remove = hdpu_cpustate_remove,
.driver = {
.name = HDPU_CPUSTATE_NAME,
+ .owner = THIS_MODULE,
},
};
@@ -248,3 +249,4 @@ module_exit(cpustate_exit);
MODULE_AUTHOR("Brian Waite");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:" HDPU_CPUSTATE_NAME);
--- g26.orig/drivers/misc/hdpuftrs/hdpu_nexus.c 2008-04-12 21:25:41.000000000 -0700
+++ g26/drivers/misc/hdpuftrs/hdpu_nexus.c 2008-04-12 21:34:19.000000000 -0700
@@ -55,6 +55,7 @@ static struct platform_driver hdpu_nexus
.remove = hdpu_nexus_remove,
.driver = {
.name = HDPU_NEXUS_NAME,
+ .owner = THIS_MODULE,
},
};
@@ -151,3 +152,4 @@ module_exit(nexus_exit);
MODULE_AUTHOR("Brian Waite");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:" HDPU_NEXUS_NAME);
reply other threads:[~2008-04-13 17:23 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=200804131006.52988.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=akpm@linux-foundation.org \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
/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®