1 Index: linux-2.6.24.2/drivers/leds/leds-gpio.c
2 ===================================================================
3 --- linux-2.6.24.2.orig/drivers/leds/leds-gpio.c
4 +++ linux-2.6.24.2/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 preemptible task context */
29 if (led_dat->can_sleep) {