summaryrefslogtreecommitdiff
path: root/target/linux/rdc-2.6/files/drivers
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-08 12:23:41 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-08 12:23:41 +0000
commitab0edce43a4ddc0a0c9daf9f3302c8e71d71ebd3 (patch)
tree3ab856ccac6e01eb93583292fa9aea1ccb325ccb /target/linux/rdc-2.6/files/drivers
parent8ec76b7a5519738c81e012ef4ae486e999e8ecfe (diff)
Use the dmz led as diagnostic led
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8380 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rdc-2.6/files/drivers')
-rw-r--r--target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c9
1 files changed, 2 insertions, 7 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 f29047340e..ae068af14f 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
@@ -18,14 +18,9 @@
#include <asm/gpio.h>
-/* This is just for testing purpose */
-int gpio=-1;
-module_param(gpio, int, 0444);
-MODULE_PARM_DESC(gpio, " GPIO line");
-
static void rdc321x_led_set(struct led_classdev *led_cdev, enum led_brightness brightness)
{
- gpio_set_value(gpio, brightness ? 1 : 0);
+ gpio_set_value(1, brightness ? 1 : 0);
}
/* The DMZ led is at GPIO line 1 */
@@ -58,7 +53,7 @@ static int __init rdc321x_leds_init(void)
{
int ret;
- ret = gpio+1?platform_driver_register(&rdc321x_leds_driver):-EINVAL;
+ ret = platform_driver_register(&rdc321x_leds_driver);
return ret;
}