diff options
author | matteo <matteo@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-09-11 21:19:57 +0000 |
---|---|---|
committer | matteo <matteo@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-09-11 21:19:57 +0000 |
commit | 6485c8ba0a21f44100aa96123f2edd70fe9edbe6 (patch) | |
tree | b97ce2d7c30acc1ff98fc64889cd3c40ea97218d /target/linux/ar7/files/drivers/leds | |
parent | 02c9cd23690727767b933f700a10296d18b47a84 (diff) |
AR7: Cleanups (closes: #2323)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8756 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7/files/drivers/leds')
-rw-r--r-- | target/linux/ar7/files/drivers/leds/leds-ar7.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ar7/files/drivers/leds/leds-ar7.c b/target/linux/ar7/files/drivers/leds/leds-ar7.c index 85533dee1..809a4d444 100644 --- a/target/linux/ar7/files/drivers/leds/leds-ar7.c +++ b/target/linux/ar7/files/drivers/leds/leds-ar7.c @@ -24,7 +24,7 @@ #include <linux/platform_device.h> #include <linux/leds.h> #include <linux/err.h> -#include <asm/io.h> +#include <linux/io.h> #include <gpio.h> #define DRVNAME "ar7-leds" @@ -35,7 +35,7 @@ MODULE_AUTHOR("Nicolas Thill <nico@openwrt.org>"); MODULE_DESCRIPTION(LONGNAME); MODULE_LICENSE("GPL"); -static void ar7_status_led_set(struct led_classdev *pled, +static void ar7_status_led_set(struct led_classdev *pled, enum led_brightness value) { gpio_set_value(AR7_GPIO_BIT_STATUS_LED, value ? 0 : 1); @@ -69,7 +69,7 @@ static int ar7_leds_probe(struct platform_device *pdev) int rc; rc = led_classdev_register(&pdev->dev, &ar7_status_led); - if (rc < 0 ) + if (rc < 0) goto out; ar7_gpio_enable(AR7_GPIO_BIT_STATUS_LED); |