aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/hx4700.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2013-08-30 06:15:24 -0400
committerThierry Reding <thierry.reding@gmail.com>2013-10-16 03:05:57 -0400
commitdb01120c5f6cb1d8c6533a49b009f08a73852498 (patch)
tree9fb21c5b78ade4d7698d2ebe52e5e6ae44510d14 /arch/arm/mach-pxa/hx4700.c
parentd46055af1cc4ba413ae0c3b6f1e6066501f943a0 (diff)
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/hx4700.c')
-rw-r--r--arch/arm/mach-pxa/hx4700.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c
index 133109ec7332..a7c30eb0c8db 100644
--- a/arch/arm/mach-pxa/hx4700.c
+++ b/arch/arm/mach-pxa/hx4700.c
@@ -561,6 +561,7 @@ static struct platform_pwm_backlight_data backlight_data = {
561 .max_brightness = 200, 561 .max_brightness = 200,
562 .dft_brightness = 100, 562 .dft_brightness = 100,
563 .pwm_period_ns = 30923, 563 .pwm_period_ns = 30923,
564 .enable_gpio = -1,
564}; 565};
565 566
566static struct platform_device backlight = { 567static struct platform_device backlight = {