Skip to contentSkip to conversation

mfd: fix platform driver hotplug/coldplug

PATCH New David Brownell 1 participant 1 message Jul 2, 2008 Multifunction devices (MFD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mfd: fix platform driver hotplug/coldplug

From: Kay Sievers <[email protected]>

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

---
 drivers/mfd/htc-pasic3.c |    2 ++
 drivers/mfd/mcp-sa11x0.c |    2 ++
 drivers/mfd/sm501.c      |    2 ++
 3 files changed, 6 insertions(+)
drivers/mfd/htc-pasic3.c +2 -0
@@ -238,6 +238,8 @@ static int pasic3_remove(struct platform
 	return 0;
 }
 
+MODULE_ALIAS("platform:pasic3");
+
 static struct platform_driver pasic3_driver = {
 	.driver		= {
 		.name	= "pasic3",
drivers/mfd/mcp-sa11x0.c +2 -0
@@ -242,6 +242,8 @@ static int mcp_sa11x0_resume(struct plat
 /*
  * The driver for the SA11x0 MCP port.
  */
+MODULE_ALIAS("platform:sa11x0-mcp");
+
 static struct platform_driver mcp_sa11x0_driver = {
 	.probe		= mcp_sa11x0_probe,
 	.remove		= mcp_sa11x0_remove,
drivers/mfd/sm501.c +2 -0
@@ -1378,6 +1378,8 @@ static struct pci_driver sm501_pci_drv =
 	.remove		= sm501_pci_remove,
 };
 
+MODULE_ALIAS("platform:sm501");
+
 static struct platform_driver sm501_plat_drv = {
 	.driver		= {
 		.name	= "sm501",