Skip to content

Commit

Permalink
unicore32: 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 bf4d252 commit 611c86c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/unicore32/kernel/puv3-nb0916.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ static struct platform_pwm_backlight_data nb0916_backlight_data = {
.max_brightness = 100,
.dft_brightness = 100,
.pwm_period_ns = 70 * 1024,
.enable_gpio = -1,
};

static struct gpio_keys_button nb0916_gpio_keys[] = {
Expand Down

0 comments on commit 611c86c

Please sign in to comment.