aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/z2.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2013-08-30 12:15:24 +0200
committerThierry Reding <thierry.reding@gmail.com>2013-10-16 09:05:57 +0200
commitdb01120c5f6cb1d8c6533a49b009f08a73852498 (patch)
tree9fb21c5b78ade4d7698d2ebe52e5e6ae44510d14 /arch/arm/mach-pxa/z2.c
parentARM: OMAP: Initialize PWM backlight enable_gpio field (diff)
downloadlinux-dev-db01120c5f6cb1d8c6533a49b009f08a73852498.tar.xz
linux-dev-db01120c5f6cb1d8c6533a49b009f08a73852498.zip
ARM: pxa: Initialize PWM backlight enable_gpio field
The GPIO API defines 0 as being a valid GPIO number, so this field needs to be initialized explicitly. A special case is the Palm Tungsten|C board. Since it doesn't use any quirks that would require the existing .init() or .exit() hooks it can simply use the new enable_gpio field. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'arch/arm/mach-pxa/z2.c')
-rw-r--r--arch/arm/mach-pxa/z2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/z2.c b/arch/arm/mach-pxa/z2.c
index 2513d8f4931f..e1a121b36cfa 100644
--- a/arch/arm/mach-pxa/z2.c
+++ b/arch/arm/mach-pxa/z2.c
@@ -206,6 +206,7 @@ static struct platform_pwm_backlight_data z2_backlight_data[] = {
.max_brightness = 1023,
.dft_brightness = 0,
.pwm_period_ns = 1260320,
+ .enable_gpio = -1,
},
[1] = {
/* LCD Backlight */
@@ -213,6 +214,7 @@ static struct platform_pwm_backlight_data z2_backlight_data[] = {
.max_brightness = 1023,
.dft_brightness = 512,
.pwm_period_ns = 1260320,
+ .enable_gpio = -1,
},
};