1 --- a/drivers/leds/leds-gpio.c
2 +++ b/drivers/leds/leds-gpio.c
3 @@ -56,13 +56,17 @@ static void gpio_led_set(struct led_clas
4 container_of(led_cdev, struct gpio_led_data, cdev);
7 - if (value == LED_OFF)
12 - if (led_dat->active_low)
16 + level = led_dat->active_low ? 1 : 0;
19 + level = led_dat->active_low ? 0 : 1;
26 /* Setting GPIOs with I2C/etc requires a task context, and we don't
27 * seem to have a reliable way to know if we're already in one; so