diff options
-rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 77e2db77c6f7..c5bd537553c2 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -352,6 +352,7 @@ static struct gpio_led igep2_gpio_leds[] = { | |||
352 | .name = "gpio-led:green:d1", | 352 | .name = "gpio-led:green:d1", |
353 | .default_trigger = "heartbeat", | 353 | .default_trigger = "heartbeat", |
354 | .gpio = -EINVAL, /* gets replaced */ | 354 | .gpio = -EINVAL, /* gets replaced */ |
355 | .active_low = 1, | ||
355 | }, | 356 | }, |
356 | }; | 357 | }; |
357 | 358 | ||
@@ -423,7 +424,7 @@ static int igep2_twl_gpio_setup(struct device *dev, | |||
423 | /* TWL4030_GPIO_MAX + 1 == ledB (out, active low LED) */ | 424 | /* TWL4030_GPIO_MAX + 1 == ledB (out, active low LED) */ |
424 | #if !defined(CONFIG_LEDS_GPIO) && !defined(CONFIG_LEDS_GPIO_MODULE) | 425 | #if !defined(CONFIG_LEDS_GPIO) && !defined(CONFIG_LEDS_GPIO_MODULE) |
425 | if ((gpio_request(gpio+TWL4030_GPIO_MAX+1, "gpio-led:green:d1") == 0) | 426 | if ((gpio_request(gpio+TWL4030_GPIO_MAX+1, "gpio-led:green:d1") == 0) |
426 | && (gpio_direction_output(gpio + TWL4030_GPIO_MAX + 1, 0) == 0)) | 427 | && (gpio_direction_output(gpio + TWL4030_GPIO_MAX + 1, 1) == 0)) |
427 | gpio_export(gpio + TWL4030_GPIO_MAX + 1, 0); | 428 | gpio_export(gpio + TWL4030_GPIO_MAX + 1, 0); |
428 | else | 429 | else |
429 | pr_warning("IGEP v2: Could not obtain gpio GPIO_LED1_GREEN\n"); | 430 | pr_warning("IGEP v2: Could not obtain gpio GPIO_LED1_GREEN\n"); |