]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/leds/leds-hp6xx.c
leds: fix platform driver hotplug/coldplug
[linux-2.6-omap-h63xx.git] / drivers / leds / leds-hp6xx.c
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,
        },
 };