diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-07-25 04:45:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-25 13:53:28 -0400 |
commit | 2f5a5cf93fae7b8354b45b8443dcc3448a8fc276 (patch) | |
tree | 19388f3baf207b30bd4b6015a64d63f61c48ca36 /drivers/power/ds2760_battery.c | |
parent | 2d6ffcca623a9a16df6cdfbe8250b7a5904a5f5e (diff) |
drivers/power: fix platform driver hotplug/coldplug
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf ("platform: prefix MODALIAS
with "platform:"), the platform modalias is prefixed with "platform:".
Add MODULE_ALIAS() to the hotpluggable "power" drivers drivers, to
re-enable auto loading.
[dbrownell@users.sourceforge.net: one was missing]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Greg KH <greg@kroah.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/power/ds2760_battery.c')
-rw-r--r-- | drivers/power/ds2760_battery.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/ds2760_battery.c b/drivers/power/ds2760_battery.c index 71be36f18709..308ddb201b66 100644 --- a/drivers/power/ds2760_battery.c +++ b/drivers/power/ds2760_battery.c | |||
@@ -433,6 +433,8 @@ static int ds2760_battery_resume(struct platform_device *pdev) | |||
433 | 433 | ||
434 | #endif /* CONFIG_PM */ | 434 | #endif /* CONFIG_PM */ |
435 | 435 | ||
436 | MODULE_ALIAS("platform:ds2760-battery"); | ||
437 | |||
436 | static struct platform_driver ds2760_battery_driver = { | 438 | static struct platform_driver ds2760_battery_driver = { |
437 | .driver = { | 439 | .driver = { |
438 | .name = "ds2760-battery", | 440 | .name = "ds2760-battery", |