Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: fix platform driver hotplug/coldplug

Since 43cc71eed1250755986da4c0f9898f9a635cb3bf (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: 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>
Cc: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kay Sievers and committed by
Linus Torvalds
4f46d6e7 2f5a5cf9

+6
+2
drivers/mfd/htc-pasic3.c
··· 238 238 return 0; 239 239 } 240 240 241 + MODULE_ALIAS("platform:pasic3"); 242 + 241 243 static struct platform_driver pasic3_driver = { 242 244 .driver = { 243 245 .name = "pasic3",
+2
drivers/mfd/mcp-sa11x0.c
··· 242 242 /* 243 243 * The driver for the SA11x0 MCP port. 244 244 */ 245 + MODULE_ALIAS("platform:sa11x0-mcp"); 246 + 245 247 static struct platform_driver mcp_sa11x0_driver = { 246 248 .probe = mcp_sa11x0_probe, 247 249 .remove = mcp_sa11x0_remove,
+2
drivers/mfd/sm501.c
··· 1378 1378 .remove = sm501_pci_remove, 1379 1379 }; 1380 1380 1381 + MODULE_ALIAS("platform:sm501"); 1382 + 1381 1383 static struct platform_driver sm501_plat_drv = { 1382 1384 .driver = { 1383 1385 .name = "sm501",