public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kay.sievers@vrfy.org, mreimer@vpop.net,
	Anton Vorontsov <avorontsov@ru.mvista.com>,
	lkml <linux-kernel@vger.kernel.org>
Subject: [patch 2.6.26-rc8] drivers/power:  fix platform driver hotplug/coldplug
Date: Wed, 2 Jul 2008 00:13:14 -0700	[thread overview]
Message-ID: <200807020013.14579.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 "power" drivers drivers, to re-enable auto loading.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
[ dbrownell@users.sourceforge.net: one was missing ]
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
 drivers/power/ds2760_battery.c |    2 ++
 drivers/power/pda_power.c      |    2 ++
 2 files changed, 4 insertions(+)

--- a/drivers/power/ds2760_battery.c	2008-07-01 23:49:46.000000000 -0700
+++ b/drivers/power/ds2760_battery.c	2008-07-01 23:51:48.000000000 -0700
@@ -433,6 +433,8 @@ static int ds2760_battery_resume(struct 
 
 #endif /* CONFIG_PM */
 
+MODULE_ALIAS("platform:ds2760-battery");
+
 static struct platform_driver ds2760_battery_driver = {
 	.driver = {
 		.name = "ds2760-battery",
--- a/drivers/power/pda_power.c	2008-07-02 00:10:18.000000000 -0700
+++ b/drivers/power/pda_power.c	2008-07-02 00:10:36.000000000 -0700
@@ -362,6 +362,8 @@ static int pda_power_resume(struct platf
 #define pda_power_resume NULL
 #endif /* CONFIG_PM */
 
+MODULE_ALIAS("platform:pda-power");
+
 static struct platform_driver pda_power_pdrv = {
 	.driver = {
 		.name = "pda-power",

             reply	other threads:[~2008-07-02  7:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-02  7:13 David Brownell [this message]
2008-07-02  8:49 ` [patch 2.6.26-rc8] drivers/power: fix platform driver hotplug/coldplug Andrew Morton
2008-07-02  9:21   ` David Brownell

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=200807020013.14579.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=akpm@linux-foundation.org \
    --cc=avorontsov@ru.mvista.com \
    --cc=kay.sievers@vrfy.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mreimer@vpop.net \
    /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