diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-08-08 12:23:41 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-08-08 12:23:41 +0000 |
commit | 3501c0716c24890a945c711e1ad7c6c218121b66 (patch) | |
tree | 41ee6e64e69845c7a4d5b65e7993b9f9cc08cc28 /target/linux/rdc-2.6/files | |
parent | 38d4bfb9ef5a238cc80315e0134d9615bdc166c0 (diff) | |
download | mtk-20170518-3501c0716c24890a945c711e1ad7c6c218121b66.zip mtk-20170518-3501c0716c24890a945c711e1ad7c6c218121b66.tar.gz mtk-20170518-3501c0716c24890a945c711e1ad7c6c218121b66.tar.bz2 |
Use the dmz led as diagnostic led
SVN-Revision: 8380
Diffstat (limited to 'target/linux/rdc-2.6/files')
-rw-r--r-- | target/linux/rdc-2.6/files/drivers/leds/leds-rdc3211.c | 9 |
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 f290473..ae068af 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; } |