Commit 4f46d6e7 authored by Kay Sievers's avatar Kay Sievers Committed by Linus Torvalds

mfd: fix platform driver hotplug/coldplug

Since 43cc71ee (platform: prefix MODALIAS
with "platform:"), the platform modalias is prefixed with "platform:".
Add MODULE_ALIAS() to the MFD platform drivers, to re-enable auto loading.

[dbrownell@users.sourceforge.net: one was missing]
Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Cc: Greg KH <greg@kroah.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2f5a5cf9
...@@ -238,6 +238,8 @@ static int pasic3_remove(struct platform_device *pdev) ...@@ -238,6 +238,8 @@ static int pasic3_remove(struct platform_device *pdev)
return 0; return 0;
} }
MODULE_ALIAS("platform:pasic3");
static struct platform_driver pasic3_driver = { static struct platform_driver pasic3_driver = {
.driver = { .driver = {
.name = "pasic3", .name = "pasic3",
......
...@@ -242,6 +242,8 @@ static int mcp_sa11x0_resume(struct platform_device *dev) ...@@ -242,6 +242,8 @@ static int mcp_sa11x0_resume(struct platform_device *dev)
/* /*
* The driver for the SA11x0 MCP port. * The driver for the SA11x0 MCP port.
*/ */
MODULE_ALIAS("platform:sa11x0-mcp");
static struct platform_driver mcp_sa11x0_driver = { static struct platform_driver mcp_sa11x0_driver = {
.probe = mcp_sa11x0_probe, .probe = mcp_sa11x0_probe,
.remove = mcp_sa11x0_remove, .remove = mcp_sa11x0_remove,
......
...@@ -1378,6 +1378,8 @@ static struct pci_driver sm501_pci_drv = { ...@@ -1378,6 +1378,8 @@ static struct pci_driver sm501_pci_drv = {
.remove = sm501_pci_remove, .remove = sm501_pci_remove,
}; };
MODULE_ALIAS("platform:sm501");
static struct platform_driver sm501_plat_drv = { static struct platform_driver sm501_plat_drv = {
.driver = { .driver = {
.name = "sm501", .name = "sm501",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment