diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-04-15 17:34:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-15 22:35:40 -0400 |
commit | bc65c724d5a2c61539b2c52680941505152fcf30 (patch) | |
tree | 99e038d8239e9a8b1517188299fa9fa6d70b2da9 /drivers/mmc/host | |
parent | bead9a3abd15710b0bdfd418daef606722d86282 (diff) |
mmc: fix platform driver hotplug/coldplug
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable MMC host
platform drivers, to re-enable auto loading.
Also, add missing owner declarations in driver init.
[dbrownell@users.sourceforge.net: registration fixes]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/at91_mci.c | 1 | ||||
-rw-r--r-- | drivers/mmc/host/au1xmmc.c | 2 | ||||
-rw-r--r-- | drivers/mmc/host/imxmmc.c | 2 | ||||
-rw-r--r-- | drivers/mmc/host/omap.c | 3 | ||||
-rw-r--r-- | drivers/mmc/host/pxamci.c | 2 | ||||
-rw-r--r-- | drivers/mmc/host/wbsd.c | 1 |
6 files changed, 10 insertions, 1 deletions
diff --git a/drivers/mmc/host/at91_mci.c b/drivers/mmc/host/at91_mci.c index 21acecc9fe3a..a28fc2f68ce2 100644 --- a/drivers/mmc/host/at91_mci.c +++ b/drivers/mmc/host/at91_mci.c | |||
@@ -1075,3 +1075,4 @@ module_exit(at91_mci_exit); | |||
1075 | MODULE_DESCRIPTION("AT91 Multimedia Card Interface driver"); | 1075 | MODULE_DESCRIPTION("AT91 Multimedia Card Interface driver"); |
1076 | MODULE_AUTHOR("Nick Randell"); | 1076 | MODULE_AUTHOR("Nick Randell"); |
1077 | MODULE_LICENSE("GPL"); | 1077 | MODULE_LICENSE("GPL"); |
1078 | MODULE_ALIAS("platform:at91_mci"); | ||
diff --git a/drivers/mmc/host/au1xmmc.c b/drivers/mmc/host/au1xmmc.c index c3926eb3bf43..cc5f7bc546af 100644 --- a/drivers/mmc/host/au1xmmc.c +++ b/drivers/mmc/host/au1xmmc.c | |||
@@ -998,6 +998,7 @@ static struct platform_driver au1xmmc_driver = { | |||
998 | .resume = NULL, | 998 | .resume = NULL, |
999 | .driver = { | 999 | .driver = { |
1000 | .name = DRIVER_NAME, | 1000 | .name = DRIVER_NAME, |
1001 | .owner = THIS_MODULE, | ||
1001 | }, | 1002 | }, |
1002 | }; | 1003 | }; |
1003 | 1004 | ||
@@ -1018,5 +1019,6 @@ module_exit(au1xmmc_exit); | |||
1018 | MODULE_AUTHOR("Advanced Micro Devices, Inc"); | 1019 | MODULE_AUTHOR("Advanced Micro Devices, Inc"); |
1019 | MODULE_DESCRIPTION("MMC/SD driver for the Alchemy Au1XXX"); | 1020 | MODULE_DESCRIPTION("MMC/SD driver for the Alchemy Au1XXX"); |
1020 | MODULE_LICENSE("GPL"); | 1021 | MODULE_LICENSE("GPL"); |
1022 | MODULE_ALIAS("platform:au1xxx-mmc"); | ||
1021 | #endif | 1023 | #endif |
1022 | 1024 | ||
diff --git a/drivers/mmc/host/imxmmc.c b/drivers/mmc/host/imxmmc.c index f2070a19cfa7..95f33e87a99c 100644 --- a/drivers/mmc/host/imxmmc.c +++ b/drivers/mmc/host/imxmmc.c | |||
@@ -1128,6 +1128,7 @@ static struct platform_driver imxmci_driver = { | |||
1128 | .resume = imxmci_resume, | 1128 | .resume = imxmci_resume, |
1129 | .driver = { | 1129 | .driver = { |
1130 | .name = DRIVER_NAME, | 1130 | .name = DRIVER_NAME, |
1131 | .owner = THIS_MODULE, | ||
1131 | } | 1132 | } |
1132 | }; | 1133 | }; |
1133 | 1134 | ||
@@ -1147,3 +1148,4 @@ module_exit(imxmci_exit); | |||
1147 | MODULE_DESCRIPTION("i.MX Multimedia Card Interface Driver"); | 1148 | MODULE_DESCRIPTION("i.MX Multimedia Card Interface Driver"); |
1148 | MODULE_AUTHOR("Sascha Hauer, Pengutronix"); | 1149 | MODULE_AUTHOR("Sascha Hauer, Pengutronix"); |
1149 | MODULE_LICENSE("GPL"); | 1150 | MODULE_LICENSE("GPL"); |
1151 | MODULE_ALIAS("platform:imx-mmc"); | ||
diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c index c9dfeb15b487..90c358b57d1c 100644 --- a/drivers/mmc/host/omap.c +++ b/drivers/mmc/host/omap.c | |||
@@ -1255,6 +1255,7 @@ static struct platform_driver mmc_omap_driver = { | |||
1255 | .resume = mmc_omap_resume, | 1255 | .resume = mmc_omap_resume, |
1256 | .driver = { | 1256 | .driver = { |
1257 | .name = DRIVER_NAME, | 1257 | .name = DRIVER_NAME, |
1258 | .owner = THIS_MODULE, | ||
1258 | }, | 1259 | }, |
1259 | }; | 1260 | }; |
1260 | 1261 | ||
@@ -1273,5 +1274,5 @@ module_exit(mmc_omap_exit); | |||
1273 | 1274 | ||
1274 | MODULE_DESCRIPTION("OMAP Multimedia Card driver"); | 1275 | MODULE_DESCRIPTION("OMAP Multimedia Card driver"); |
1275 | MODULE_LICENSE("GPL"); | 1276 | MODULE_LICENSE("GPL"); |
1276 | MODULE_ALIAS(DRIVER_NAME); | 1277 | MODULE_ALIAS("platform:" DRIVER_NAME); |
1277 | MODULE_AUTHOR("Juha Yrjölä"); | 1278 | MODULE_AUTHOR("Juha Yrjölä"); |
diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index 1ea8482037bb..65210fca37ed 100644 --- a/drivers/mmc/host/pxamci.c +++ b/drivers/mmc/host/pxamci.c | |||
@@ -693,6 +693,7 @@ static struct platform_driver pxamci_driver = { | |||
693 | .resume = pxamci_resume, | 693 | .resume = pxamci_resume, |
694 | .driver = { | 694 | .driver = { |
695 | .name = DRIVER_NAME, | 695 | .name = DRIVER_NAME, |
696 | .owner = THIS_MODULE, | ||
696 | }, | 697 | }, |
697 | }; | 698 | }; |
698 | 699 | ||
@@ -711,3 +712,4 @@ module_exit(pxamci_exit); | |||
711 | 712 | ||
712 | MODULE_DESCRIPTION("PXA Multimedia Card Interface Driver"); | 713 | MODULE_DESCRIPTION("PXA Multimedia Card Interface Driver"); |
713 | MODULE_LICENSE("GPL"); | 714 | MODULE_LICENSE("GPL"); |
715 | MODULE_ALIAS("platform:pxa2xx-mci"); | ||
diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c index 4d5f37421874..be624a049c67 100644 --- a/drivers/mmc/host/wbsd.c +++ b/drivers/mmc/host/wbsd.c | |||
@@ -1948,6 +1948,7 @@ static struct platform_driver wbsd_driver = { | |||
1948 | .resume = wbsd_platform_resume, | 1948 | .resume = wbsd_platform_resume, |
1949 | .driver = { | 1949 | .driver = { |
1950 | .name = DRIVER_NAME, | 1950 | .name = DRIVER_NAME, |
1951 | .owner = THIS_MODULE, | ||
1951 | }, | 1952 | }, |
1952 | }; | 1953 | }; |
1953 | 1954 | ||