]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/leds/leds-hp6xx.c
Merge phase #4 (X2APIC, APIC unification, CPU identification unification) of git...
[linux-2.6-omap-h63xx.git] / drivers / leds / leds-hp6xx.c
index 82d4ec38479736275150cc433a70457a5f7abc2e..844d5979c9045bfa6126eb8b4828706ac9f68655 100644 (file)
@@ -17,7 +17,8 @@
 #include <asm/hd64461.h>
 #include <asm/hp6xx.h>
 
-static void hp6xxled_green_set(struct led_classdev *led_cdev, enum led_brightness value)
+static void hp6xxled_green_set(struct led_classdev *led_cdev,
+                              enum led_brightness value)
 {
        u8 v8;
 
@@ -28,7 +29,8 @@ static void hp6xxled_green_set(struct led_classdev *led_cdev, enum led_brightnes
                outb(v8 | PKDR_LED_GREEN, PKDR);
 }
 
-static void hp6xxled_red_set(struct led_classdev *led_cdev, enum led_brightness value)
+static void hp6xxled_red_set(struct led_classdev *led_cdev,
+                            enum led_brightness value)
 {
        u16 v16;
 
@@ -90,6 +92,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 +104,7 @@ static struct platform_driver hp6xxled_driver = {
 #endif
        .driver         = {
                .name           = "hp6xx-led",
+               .owner          = THIS_MODULE,
        },
 };