1
0
Fork 0

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>
hifive-unleashed-5.1
Jingoo Han 2014-02-26 10:17:53 +09:00 committed by Thierry Reding
parent 2974b09860
commit 4407b6d243
1 changed files with 2 additions and 3 deletions

View File

@ -598,9 +598,8 @@ static int pwm_samsung_resume(struct device *dev)
}
#endif
static const struct dev_pm_ops pwm_samsung_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(pwm_samsung_suspend, pwm_samsung_resume)
};
static SIMPLE_DEV_PM_OPS(pwm_samsung_pm_ops, pwm_samsung_suspend,
pwm_samsung_resume);
static struct platform_driver pwm_samsung_driver = {
.driver = {