1 Index: linux-2.6.25.4/drivers/leds/leds-gpio.c
2 ===================================================================
3 --- linux-2.6.25.4.orig/drivers/leds/leds-gpio.c
4 +++ linux-2.6.25.4/drivers/leds/leds-gpio.c
5 @@ -41,13 +41,17 @@ static void gpio_led_set(struct led_clas
6 container_of(led_cdev, struct gpio_led_data, cdev);
9 - if (value == LED_OFF)
14 - if (led_dat->active_low)
18 + level = led_dat->active_low ? 1 : 0;
21 + level = led_dat->active_low ? 0 : 1;
28 /* Setting GPIOs with I2C/etc requires a task context, and we don't
29 * seem to have a reliable way to know if we're already in one; so