]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/leds/leds-spitz.c
tcpv[46]: fix md5 pseudoheader address field ordering
[linux-2.6-omap-h63xx.git] / drivers / leds / leds-spitz.c
index 93e1012b17e620c1c85e8ad037180142676d11b4..178831c64bfb2dbed496df7886f151235bb80a01 100644 (file)
 #include <linux/leds.h>
 #include <asm/hardware/scoop.h>
 #include <asm/mach-types.h>
-#include <asm/arch/hardware.h>
-#include <asm/arch/pxa-regs.h>
-#include <asm/arch/spitz.h>
+#include <mach/hardware.h>
+#include <mach/pxa-regs.h>
+#include <mach/spitz.h>
 
-static void spitzled_amber_set(struct led_classdev *led_cdev, enum led_brightness value)
+static void spitzled_amber_set(struct led_classdev *led_cdev,
+                              enum led_brightness value)
 {
        if (value)
                set_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_LED_ORANGE);
@@ -29,7 +30,8 @@ static void spitzled_amber_set(struct led_classdev *led_cdev, enum led_brightnes
                reset_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_LED_ORANGE);
 }
 
-static void spitzled_green_set(struct led_classdev *led_cdev, enum led_brightness value)
+static void spitzled_green_set(struct led_classdev *led_cdev,
+                              enum led_brightness value)
 {
        if (value)
                set_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_LED_GREEN);
@@ -53,7 +55,8 @@ static struct led_classdev spitz_green_led = {
 static int spitzled_suspend(struct platform_device *dev, pm_message_t state)
 {
 #ifdef CONFIG_LEDS_TRIGGERS
-       if (spitz_amber_led.trigger && strcmp(spitz_amber_led.trigger->name, "sharpsl-charge"))
+       if (spitz_amber_led.trigger &&
+           strcmp(spitz_amber_led.trigger->name, "sharpsl-charge"))
 #endif
                led_classdev_suspend(&spitz_amber_led);
        led_classdev_suspend(&spitz_green_led);
@@ -105,6 +108,7 @@ static struct platform_driver spitzled_driver = {
 #endif
        .driver         = {
                .name           = "spitz-led",
+               .owner          = THIS_MODULE,
        },
 };
 
@@ -115,7 +119,7 @@ static int __init spitzled_init(void)
 
 static void __exit spitzled_exit(void)
 {
-       platform_driver_unregister(&spitzled_driver);
+       platform_driver_unregister(&spitzled_driver);
 }
 
 module_init(spitzled_init);
@@ -124,3 +128,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");