aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-05-06 18:32:36 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-05-06 18:32:36 -0400
commitf87bb9ee62700fa11713c630ac5671f253233b94 (patch)
tree400e51578b6f2302d3a48d3b4a02208adc66aacf /drivers/video/backlight
parent99737982ca39065a58021bdc31486ea783f952d3 (diff)
parentaffb923df96d6c927f9a3dfb0e6f4be940b185cd (diff)
Merge tag 'for-3.10-rc1' of git://gitorious.org/linux-pwm/linux-pwm
Pull pwm changes from Thierry Reding: "Nothing very exciting this time around. A couple of bug fixes and a lot of cleanup across the board. The DaVinci 8xx family of SoCs now use the same driver as the AM33xx family. Many thanks to Axel Lin and Jingoo Han who have done a great job fixing various bugs and inconsistencies." * tag 'for-3.10-rc1' of git://gitorious.org/linux-pwm/linux-pwm: (27 commits) pwm: lpc32xx: Don't change PWM_ENABLE bit in lpc32xx_pwm_config pwm: lpc32xx: Properly set PWM_ENABLE bit in lpc32xx_pwm_[enable|disable] pwm: Constify OF match tables pwm: pwm-tiehrpwm: Update device-tree binding document pwm: pwm-tiecap: Update device-tree binding document pwm: puv3: Remove unused enabled filed from struct puv3_pwm_chip pwm: pxa: Remove PWM_ID_BASE macro pwm: spear: Remove unused *dev from struct spear_pwm_chip pwm: mxs: Remove unused *dev from struct mxs_pwm_chip pwm: twl: Return proper error if twl6030_pwm_enable() fails pwm: pxa: Remove clk_enabled field from struct pxa_pwm_chip pwm: imx: Remove enabled field from struct imx_chip pwm: twl: Add .owner to struct pwm_ops pwm: twl-led: Add .owner to struct pwm_ops pwm: atmel-tcb: Add .owner to struct pwm_ops pwm: ab8500: Add .owner to struct pwm_ops pwm: spear: Fix checking return value of clk_enable() and clk_prepare() pwm: tiehrpwm: Staticize non-exported symbols pwm: tiecap: Staticize non-exported symbols pwm: ab8500: Fix trivial typo in dev_err message ...
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r--drivers/video/backlight/pwm_bl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c
index fa00304a63d8..1fea627394d7 100644
--- a/drivers/video/backlight/pwm_bl.c
+++ b/drivers/video/backlight/pwm_bl.c
@@ -274,7 +274,7 @@ static int pwm_backlight_remove(struct platform_device *pdev)
274 return 0; 274 return 0;
275} 275}
276 276
277#ifdef CONFIG_PM 277#ifdef CONFIG_PM_SLEEP
278static int pwm_backlight_suspend(struct device *dev) 278static int pwm_backlight_suspend(struct device *dev)
279{ 279{
280 struct backlight_device *bl = dev_get_drvdata(dev); 280 struct backlight_device *bl = dev_get_drvdata(dev);
@@ -296,19 +296,16 @@ static int pwm_backlight_resume(struct device *dev)
296 backlight_update_status(bl); 296 backlight_update_status(bl);
297 return 0; 297 return 0;
298} 298}
299#endif
299 300
300static SIMPLE_DEV_PM_OPS(pwm_backlight_pm_ops, pwm_backlight_suspend, 301static SIMPLE_DEV_PM_OPS(pwm_backlight_pm_ops, pwm_backlight_suspend,
301 pwm_backlight_resume); 302 pwm_backlight_resume);
302 303
303#endif
304
305static struct platform_driver pwm_backlight_driver = { 304static struct platform_driver pwm_backlight_driver = {
306 .driver = { 305 .driver = {
307 .name = "pwm-backlight", 306 .name = "pwm-backlight",
308 .owner = THIS_MODULE, 307 .owner = THIS_MODULE,
309#ifdef CONFIG_PM
310 .pm = &pwm_backlight_pm_ops, 308 .pm = &pwm_backlight_pm_ops,
311#endif
312 .of_match_table = of_match_ptr(pwm_backlight_of_match), 309 .of_match_table = of_match_ptr(pwm_backlight_of_match),
313 }, 310 },
314 .probe = pwm_backlight_probe, 311 .probe = pwm_backlight_probe,