diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-02-25 20:17:53 -0500 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-02-26 10:14:57 -0500 |
commit | 4407b6d243293e84546f4b1dbbe1ed8e9d797a6c (patch) | |
tree | ad9d6541f205a2a709403217d1bbfbfb45ed2d17 /drivers/pwm/pwm-samsung.c | |
parent | 2974b09860286f47f916d4c651f895c781ed5247 (diff) |
pwm: samsung: Use SIMPLE_DEV_PM_OPS macro
Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-samsung.c')
-rw-r--r-- | drivers/pwm/pwm-samsung.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-samsung.c b/drivers/pwm/pwm-samsung.c index b59639e0c029..d66529a995a1 100644 --- a/drivers/pwm/pwm-samsung.c +++ b/drivers/pwm/pwm-samsung.c | |||
@@ -598,9 +598,8 @@ static int pwm_samsung_resume(struct device *dev) | |||
598 | } | 598 | } |
599 | #endif | 599 | #endif |
600 | 600 | ||
601 | static const struct dev_pm_ops pwm_samsung_pm_ops = { | 601 | static SIMPLE_DEV_PM_OPS(pwm_samsung_pm_ops, pwm_samsung_suspend, |
602 | SET_SYSTEM_SLEEP_PM_OPS(pwm_samsung_suspend, pwm_samsung_resume) | 602 | pwm_samsung_resume); |
603 | }; | ||
604 | 603 | ||
605 | static struct platform_driver pwm_samsung_driver = { | 604 | static struct platform_driver pwm_samsung_driver = { |
606 | .driver = { | 605 | .driver = { |