summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-06 19:25:12 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-06 19:25:12 +0000
commitae1dbe565529f1a915b88995e187b3bf25e3597d (patch)
treedfb8d036af7778cb03ba2b064ea20fe670970b2c
parentf3fd9a2cbbcddf776cd799675604153ce2679656 (diff)
More led driver fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8358 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 b45a10e0a6..6a15a16ad5 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,