drivers/power: fix platform driver hotplug/coldplug
Since 43cc71eed1
("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>
This commit is contained in:
parent
2d6ffcca62
commit
2f5a5cf93f
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue