]> err.no Git - linux-2.6/commitdiff
misc: fix platform driver hotplug/coldplug
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 15 Apr 2008 21:34:33 +0000 (14:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Apr 2008 02:35:40 +0000 (19:35 -0700)
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
prefixed with "platform:".  Add MODULE_ALIAS() to the hotpluggable 'misc'
platform drivers, to re-enable auto loading.

[dbrownell@users.sourceforge.net:  bugfix, registration fixes]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/atmel-ssc.c
drivers/misc/atmel_pwm.c
drivers/misc/hdpuftrs/hdpu_cpustate.c
drivers/misc/hdpuftrs/hdpu_nexus.c

index 058ccac700d012f3b7c1cd396f5771f95ec7eaae..e171650766ce73bfc324c6799d4e3521949c72be 100644 (file)
@@ -154,6 +154,7 @@ static struct platform_driver ssc_driver = {
        .remove         = __devexit_p(ssc_remove),
        .driver         = {
                .name           = "ssc",
+               .owner          = THIS_MODULE,
        },
 };
 
@@ -172,3 +173,4 @@ module_exit(ssc_exit);
 MODULE_AUTHOR("Hans-Christian Egtvedt <hcegtvedt@atmel.com>");
 MODULE_DESCRIPTION("SSC driver for Atmel AVR32 and AT91");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:ssc");
index f8d3b9a76cbdea2fd9673224136b0b4ab4dc8d2e..0d5ce03cdff24cf5d683a3750bb2a56ba397b6e1 100644 (file)
@@ -407,3 +407,4 @@ module_exit(pwm_exit);
 
 MODULE_DESCRIPTION("Driver for AT32/AT91 PWM module");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:atmel_pwm");
index aa8ce7abe9221666b6e7c01dff4f7dc7321dfc84..302e92418bbef2464e0e3f8fdf85edbb47729a20 100644 (file)
@@ -164,6 +164,7 @@ static struct platform_driver hdpu_cpustate_driver = {
        .remove = hdpu_cpustate_remove,
        .driver = {
                .name = HDPU_CPUSTATE_NAME,
+               .owner = THIS_MODULE,
        },
 };
 
@@ -248,3 +249,4 @@ module_exit(cpustate_exit);
 
 MODULE_AUTHOR("Brian Waite");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:" HDPU_CPUSTATE_NAME);
index 2887b21479800669f0af10b66e7dd79ddbdb0d19..2fa36f7a6eb388ec02db087560ec3dca4c8b2d1d 100644 (file)
@@ -55,6 +55,7 @@ static struct platform_driver hdpu_nexus_driver = {
        .remove = hdpu_nexus_remove,
        .driver = {
                .name = HDPU_NEXUS_NAME,
+               .owner = THIS_MODULE,
        },
 };
 
@@ -151,3 +152,4 @@ module_exit(nexus_exit);
 
 MODULE_AUTHOR("Brian Waite");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:" HDPU_NEXUS_NAME);