ARM: OMAP: Initialize PWM backlight enable_gpio field
authorThierry Reding <treding@nvidia.com>
Fri, 30 Aug 2013 10:13:53 +0000 (12:13 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 16 Oct 2013 07:05:57 +0000 (09:05 +0200)
The GPIO API defines 0 as being a valid GPIO number, so this field needs
to be initialized explicitly.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/mach-omap2/board-zoom-peripherals.c

index a90375d..5ed2884 100644 (file)
@@ -227,6 +227,7 @@ static struct platform_pwm_backlight_data zoom_backlight_data = {
        .max_brightness = 127,
        .dft_brightness = 127,
        .pwm_period_ns = 7812500,
+       .enable_gpio = -1,
 };
 
 static struct platform_device zoom_backlight_pwm = {