diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-02-25 03:15:47 -0500 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2013-03-08 02:30:13 -0500 |
commit | c791126b93e800c68557483235321b201c082910 (patch) | |
tree | a15e3906b4ac861bd291d4fc5ec2eb7575c4444c /drivers/video | |
parent | 6dbe51c251a327e012439c4772097a13df43c5b8 (diff) |
pwm_backlight: remove unnecessary ifdefs
When the macro such as SIMPLE_DEV_PM_OPS is used, there is
no need to use '#ifdef CONFIG_PM' to prevent build error. Thus,
this patch removes unnecessary ifdefs.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/pwm_bl.c | 7 |
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 |
278 | static int pwm_backlight_suspend(struct device *dev) | 278 | static 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 | ||
300 | static SIMPLE_DEV_PM_OPS(pwm_backlight_pm_ops, pwm_backlight_suspend, | 301 | static SIMPLE_DEV_PM_OPS(pwm_backlight_pm_ops, pwm_backlight_suspend, |
301 | pwm_backlight_resume); | 302 | pwm_backlight_resume); |
302 | 303 | ||
303 | #endif | ||
304 | |||
305 | static struct platform_driver pwm_backlight_driver = { | 304 | static 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, |