Skip to content

Commit

Permalink
ARM: OMAP: Initialize PWM backlight enable_gpio field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding authored and Thierry Reding committed Oct 16, 2013
1 parent 2b9b162 commit d46055a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-omap2/board-zoom-peripherals.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit d46055a

Please sign in to comment.