[patch 2.6.25-rc9] pcmcia: fix platform driver hotplug/coldplug

David Brownell david-b at pacbell.net
Sun Apr 13 13:08:38 EDT 2008


From: Kay Sievers <kay.sievers at vrfy.org>

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

[dbrownell at users.sourceforge.net: registration fixes ]
Signed-off-by: Kay Sievers <kay.sievers at vrfy.org>
Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
---
 drivers/pcmcia/at91_cf.c     |    1 +
 drivers/pcmcia/omap_cf.c     |    2 ++
 drivers/pcmcia/pxa2xx_base.c |    2 ++
 3 files changed, 5 insertions(+)

--- g26.orig/drivers/pcmcia/at91_cf.c	2008-04-12 21:26:40.000000000 -0700
+++ g26/drivers/pcmcia/at91_cf.c	2008-04-12 22:01:33.000000000 -0700
@@ -419,3 +419,4 @@ module_exit(at91_cf_exit);
 MODULE_DESCRIPTION("AT91 Compact Flash Driver");
 MODULE_AUTHOR("David Brownell");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:at91_cf");
--- g26.orig/drivers/pcmcia/omap_cf.c	2008-04-12 21:26:40.000000000 -0700
+++ g26/drivers/pcmcia/omap_cf.c	2008-04-12 22:02:21.000000000 -0700
@@ -344,6 +344,7 @@ static int omap_cf_resume(struct platfor
 static struct platform_driver omap_cf_driver = {
 	.driver = {
 		.name	= (char *) driver_name,
+		.owner	= THIS_MODULE,
 	},
 	.remove		= __exit_p(omap_cf_remove),
 	.suspend	= omap_cf_suspend,
@@ -368,3 +369,4 @@ module_exit(omap_cf_exit);
 
 MODULE_DESCRIPTION("OMAP CF Driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:omap_cf");
--- g26.orig/drivers/pcmcia/pxa2xx_base.c	2008-04-12 21:26:40.000000000 -0700
+++ g26/drivers/pcmcia/pxa2xx_base.c	2008-04-12 22:03:08.000000000 -0700
@@ -239,6 +239,7 @@ static struct platform_driver pxa2xx_pcm
 	.resume 	= pxa2xx_drv_pcmcia_resume,
 	.driver		= {
 		.name	= "pxa2xx-pcmcia",
+		.owner	= THIS_MODULE,
 	},
 };
 
@@ -258,3 +259,4 @@ module_exit(pxa2xx_pcmcia_exit);
 MODULE_AUTHOR("Stefan Eletzhofer <stefan.eletzhofer at inquant.de> and Ian Molton <spyro at f2s.com>");
 MODULE_DESCRIPTION("Linux PCMCIA Card Services: PXA2xx core socket driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:pxa2xx-pcmcia");



More information about the linux-pcmcia mailing list