Skip to content

Commit

Permalink
drivers/power: fix platform driver hotplug/coldplug
Browse files Browse the repository at this point in the history
Since 43cc71e ("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>
  • Loading branch information
Kay Sievers authored and Linus Torvalds committed Jul 25, 2008
1 parent 2d6ffcc commit 2f5a5cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/power/ds2760_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ static int ds2760_battery_resume(struct platform_device *pdev)

#endif /* CONFIG_PM */

MODULE_ALIAS("platform:ds2760-battery");

static struct platform_driver ds2760_battery_driver = {
.driver = {
.name = "ds2760-battery",
Expand Down
2 changes: 2 additions & 0 deletions drivers/power/pda_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ static int pda_power_resume(struct platform_device *pdev)
#define pda_power_resume NULL
#endif /* CONFIG_PM */

MODULE_ALIAS("platform:pda-power");

static struct platform_driver pda_power_pdrv = {
.driver = {
.name = "pda-power",
Expand Down

0 comments on commit 2f5a5cf

Please sign in to comment.