Commit 12c2c019 authored by Kay Sievers's avatar Kay Sievers Committed by Linus Torvalds

pcmcia: fix platform driver hotplug/coldplug

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

[dbrownell@users.sourceforge.net: registration fixes]
Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d6c23850
...@@ -419,3 +419,4 @@ module_exit(at91_cf_exit); ...@@ -419,3 +419,4 @@ module_exit(at91_cf_exit);
MODULE_DESCRIPTION("AT91 Compact Flash Driver"); MODULE_DESCRIPTION("AT91 Compact Flash Driver");
MODULE_AUTHOR("David Brownell"); MODULE_AUTHOR("David Brownell");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:at91_cf");
...@@ -344,6 +344,7 @@ static int omap_cf_resume(struct platform_device *pdev) ...@@ -344,6 +344,7 @@ static int omap_cf_resume(struct platform_device *pdev)
static struct platform_driver omap_cf_driver = { static struct platform_driver omap_cf_driver = {
.driver = { .driver = {
.name = (char *) driver_name, .name = (char *) driver_name,
.owner = THIS_MODULE,
}, },
.remove = __exit_p(omap_cf_remove), .remove = __exit_p(omap_cf_remove),
.suspend = omap_cf_suspend, .suspend = omap_cf_suspend,
...@@ -368,3 +369,4 @@ module_exit(omap_cf_exit); ...@@ -368,3 +369,4 @@ module_exit(omap_cf_exit);
MODULE_DESCRIPTION("OMAP CF Driver"); MODULE_DESCRIPTION("OMAP CF Driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:omap_cf");
...@@ -239,6 +239,7 @@ static struct platform_driver pxa2xx_pcmcia_driver = { ...@@ -239,6 +239,7 @@ static struct platform_driver pxa2xx_pcmcia_driver = {
.resume = pxa2xx_drv_pcmcia_resume, .resume = pxa2xx_drv_pcmcia_resume,
.driver = { .driver = {
.name = "pxa2xx-pcmcia", .name = "pxa2xx-pcmcia",
.owner = THIS_MODULE,
}, },
}; };
...@@ -258,3 +259,4 @@ module_exit(pxa2xx_pcmcia_exit); ...@@ -258,3 +259,4 @@ module_exit(pxa2xx_pcmcia_exit);
MODULE_AUTHOR("Stefan Eletzhofer <stefan.eletzhofer@inquant.de> and Ian Molton <spyro@f2s.com>"); MODULE_AUTHOR("Stefan Eletzhofer <stefan.eletzhofer@inquant.de> and Ian Molton <spyro@f2s.com>");
MODULE_DESCRIPTION("Linux PCMCIA Card Services: PXA2xx core socket driver"); MODULE_DESCRIPTION("Linux PCMCIA Card Services: PXA2xx core socket driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:pxa2xx-pcmcia");
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