diff options
Diffstat (limited to 'drivers/video/backlight/pwm_bl.c')
-rw-r--r-- | drivers/video/backlight/pwm_bl.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index f77a7b0ca5e6..299533491a95 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c | |||
@@ -387,8 +387,14 @@ static int pwm_backlight_resume(struct device *dev) | |||
387 | } | 387 | } |
388 | #endif | 388 | #endif |
389 | 389 | ||
390 | static SIMPLE_DEV_PM_OPS(pwm_backlight_pm_ops, pwm_backlight_suspend, | 390 | static const struct dev_pm_ops pwm_backlight_pm_ops = { |
391 | pwm_backlight_resume); | 391 | #ifdef CONFIG_PM_SLEEP |
392 | .suspend = pwm_backlight_suspend, | ||
393 | .resume = pwm_backlight_resume, | ||
394 | .poweroff = pwm_backlight_suspend, | ||
395 | .restore = pwm_backlight_resume, | ||
396 | #endif | ||
397 | }; | ||
392 | 398 | ||
393 | static struct platform_driver pwm_backlight_driver = { | 399 | static struct platform_driver pwm_backlight_driver = { |
394 | .driver = { | 400 | .driver = { |