]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
leds: fix platform driver hotplug/coldplug
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 15 Apr 2008 21:34:30 +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 platform LED drivers, to re-enable auto loading.

[dbrownell@users.sourceforge.net: more drivers, registration fixes]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 files changed:
drivers/leds/leds-ams-delta.c
drivers/leds/leds-atmel-pwm.c
drivers/leds/leds-clevo-mail.c
drivers/leds/leds-cm-x270.c
drivers/leds/leds-cobalt-qube.c
drivers/leds/leds-corgi.c
drivers/leds/leds-gpio.c
drivers/leds/leds-h1940.c
drivers/leds/leds-hp6xx.c
drivers/leds/leds-s3c24xx.c
drivers/leds/leds-spitz.c
drivers/leds/leds-tosa.c

index 9e3077463d8481944e351b466e3d4e6749751cb9..c37bb0d5a0c5719eccf82dcfe110e1eb14bcbeeb 100644 (file)
@@ -140,6 +140,7 @@ static struct platform_driver ams_delta_led_driver = {
        .resume         = ams_delta_led_resume,
        .driver         = {
                .name = "ams-delta-led",
+               .owner = THIS_MODULE,
        },
 };
 
@@ -159,3 +160,4 @@ module_exit(ams_delta_led_exit);
 MODULE_AUTHOR("Jonathan McDowell <noodles@earth.li>");
 MODULE_DESCRIPTION("Amstrad Delta LED driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:ams-delta-led");
index af61f55571fe5093e7632506a7e076afa27676fb..28db6c1444ed9f4b64c989fbbbbc05f49ff82f61 100644 (file)
@@ -132,6 +132,9 @@ static int __exit pwmled_remove(struct platform_device *pdev)
        return 0;
 }
 
+/* work with hotplug and coldplug */
+MODULE_ALIAS("platform:leds-atmel-pwm");
+
 static struct platform_driver pwmled_driver = {
        .driver = {
                .name =         "leds-atmel-pwm",
index 6c3d33b8e3830f892afefa7045b71945b55192c7..5750b08b601fe21e713f6a402554e88078060e68 100644 (file)
@@ -170,6 +170,7 @@ static struct platform_driver clevo_mail_led_driver = {
        .resume         = clevo_mail_led_resume,
        .driver         = {
                .name           = KBUILD_MODNAME,
+               .owner          = THIS_MODULE,
        },
 };
 
index 9aebef02a974b4654f5f84494491801b044561e5..accc7eddb788658ae15579f374af14d7542619b5 100644 (file)
@@ -101,6 +101,7 @@ static struct platform_driver cmx270led_driver = {
 #endif
        .driver         = {
                .name           = "cm-x270-led",
+               .owner          = THIS_MODULE,
        },
 };
 
@@ -120,3 +121,4 @@ module_exit(cmx270led_exit);
 MODULE_AUTHOR("Mike Rapoport <mike@compulab.co.il>");
 MODULE_DESCRIPTION("CM-x270 LED driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:cm-x270-led");
index d2b54b53d80a372264e161a26a29e9c589d7f227..096881a11b1a2a074d530e647974ac3a77b39ea7 100644 (file)
@@ -75,6 +75,9 @@ static int __devexit cobalt_qube_led_remove(struct platform_device *pdev)
        return 0;
 }
 
+/* work with hotplug and coldplug */
+MODULE_ALIAS("platform:cobalt-qube-leds");
+
 static struct platform_driver cobalt_qube_led_driver = {
        .probe  = cobalt_qube_led_probe,
        .remove = __devexit_p(cobalt_qube_led_remove),
index e45f6c4b59ba4fd6c57293ba60dd55e49013aada..29e931f89f9cce65f25f422c87680b6347ad6b92 100644 (file)
@@ -99,6 +99,7 @@ static struct platform_driver corgiled_driver = {
 #endif
        .driver         = {
                .name           = "corgi-led",
+               .owner          = THIS_MODULE,
        },
 };
 
@@ -118,3 +119,4 @@ module_exit(corgiled_exit);
 MODULE_AUTHOR("Richard Purdie <rpurdie@openedhand.com>");
 MODULE_DESCRIPTION("Corgi LED driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:corgi-led");
index 4c0b05852cb6f2b7c85ab80013c06af0a73ecba0..1aae8b3321349e53802a280d402a36ff1e82d2c3 100644 (file)
@@ -199,3 +199,4 @@ module_exit(gpio_led_exit);
 MODULE_AUTHOR("Raphael Assenat <raph@8d.com>");
 MODULE_DESCRIPTION("GPIO LED driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:leds-gpio");
index 677c99325be5add863bc487c3b942ccbdd5c5cbc..6e51c9b610279f37f3a8842c739dc00c6c33a832 100644 (file)
@@ -139,6 +139,7 @@ static int h1940leds_remove(struct platform_device *pdev)
 static struct platform_driver h1940leds_driver = {
        .driver         = {
                .name   = "h1940-leds",
+               .owner  = THIS_MODULE,
        },
        .probe          = h1940leds_probe,
        .remove         = h1940leds_remove,
@@ -161,3 +162,4 @@ module_exit(h1940leds_exit);
 MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>");
 MODULE_DESCRIPTION("LED driver for the iPAQ H1940");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:h1940-leds");
index 82d4ec38479736275150cc433a70457a5f7abc2e..870f5a3789e8375269f9c13b92e1ca78d0e18cf5 100644 (file)
@@ -90,6 +90,9 @@ static int hp6xxled_remove(struct platform_device *pdev)
        return 0;
 }
 
+/* work with hotplug and coldplug */
+MODULE_ALIAS("platform:hp6xx-led");
+
 static struct platform_driver hp6xxled_driver = {
        .probe          = hp6xxled_probe,
        .remove         = hp6xxled_remove,
@@ -99,6 +102,7 @@ static struct platform_driver hp6xxled_driver = {
 #endif
        .driver         = {
                .name           = "hp6xx-led",
+               .owner          = THIS_MODULE,
        },
 };
 
index 0fd640751294ae143be658800fdffc7e1430da44..0d10e119d8f5451005ea9e86fd73862cde36a495 100644 (file)
@@ -160,3 +160,4 @@ module_exit(s3c24xx_led_exit);
 MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
 MODULE_DESCRIPTION("S3C24XX LED driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:s3c24xx_led");
index 93e1012b17e620c1c85e8ad037180142676d11b4..87007cc362c126ad0ae91dbe883e74928861975f 100644 (file)
@@ -105,6 +105,7 @@ static struct platform_driver spitzled_driver = {
 #endif
        .driver         = {
                .name           = "spitz-led",
+               .owner          = THIS_MODULE,
        },
 };
 
@@ -124,3 +125,4 @@ module_exit(spitzled_exit);
 MODULE_AUTHOR("Richard Purdie <rpurdie@openedhand.com>");
 MODULE_DESCRIPTION("Spitz LED driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:spitz-led");
index 9e0a188fbb0a224ceb66fc7fe3b22a0bc4668437..7ebecc41a9bed8d571bad5820c5ffcc3a447e3fc 100644 (file)
@@ -109,6 +109,7 @@ static struct platform_driver tosaled_driver = {
        .resume         = tosaled_resume,
        .driver         = {
                .name           = "tosa-led",
+               .owner          = THIS_MODULE,
        },
 };
 
@@ -128,3 +129,4 @@ module_exit(tosaled_exit);
 MODULE_AUTHOR("Dirk Opfer <Dirk@Opfer-Online.de>");
 MODULE_DESCRIPTION("Tosa LED driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:tosa-led");