summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-08-06 19:25:12 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-08-06 19:25:12 +0000
commitba3e8330362953c39b3a9efc8d8141ffa2cf37a0 (patch)
tree25e62df94509c481f86c44633b720430bdd6c012 /target
parent38db03a94f9f4fde212d51519a8b46be76629a89 (diff)
downloadmtk-20170518-ba3e8330362953c39b3a9efc8d8141ffa2cf37a0.zip
mtk-20170518-ba3e8330362953c39b3a9efc8d8141ffa2cf37a0.tar.gz
mtk-20170518-ba3e8330362953c39b3a9efc8d8141ffa2cf37a0.tar.bz2
More led driver fixes
SVN-Revision: 8358
Diffstat (limited to 'target')
-rw-r--r--target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c b/target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c
index b45a10e..6a15a16 100644
--- a/target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c
+++ b/target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c
@@ -15,11 +15,10 @@
#include <linux/platform_device.h>
#include <linux/leds.h>
#include <linux/err.h>
-#include <linux/delay.h>
-#include <asm/io.h>
#include <asm/gpio.h>
+/* This is just for testing purpose */
int gpio;
module_param(gpio, int, 0444);
MODULE_PARM_DESC(gpio, " GPIO line");
@@ -29,6 +28,7 @@ static void rdc321x_led_set(struct led_classdev *led_cdev, enum led_brightness b
gpio_set_value(gpio, brightness ? 1 : 0);
}
+/* The DMZ led is at GPIO line 1 */
static struct led_classdev rdc321x_dmz_led = {
.name = "rdc321x:dmz",
.brightness_set = rdc321x_led_set,