From: Jingoo Han Date: Wed, 26 Feb 2014 01:17:53 +0000 (+0900) Subject: pwm: samsung: Use SIMPLE_DEV_PM_OPS macro X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4407b6d243293e84546f4b1dbbe1ed8e9d797a6c;p=linux-beck.git 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 Signed-off-by: Thierry Reding --- 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) } #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 = {