Use the dmz led as diagnostic led
[openwrt/svn-archive/archive.git] / target / linux / rdc-2.6 / files / drivers / leds / leds-rdc3211.c
index b45a10e0a69d99a0be0cdce497713014ea7a168f..ae068af14f9f4206d64d1ae233eefe006804debe 100644 (file)
 #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>
 
-int gpio;
-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 */
 static struct led_classdev rdc321x_dmz_led = {
        .name = "rdc321x:dmz",
        .brightness_set = rdc321x_led_set,