drivers/rtc/rtc-as3722.c: use SIMPLE_DEV_PM_OPS macro
authorJingoo Han <jg1.han@samsung.com>
Thu, 3 Apr 2014 21:50:06 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:22 +0000 (16:21 -0700)
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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-as3722.c

index 4af016985890e6d70a7f57a9b7c605cde1d9723d..9f38eda69154d4b2b5fdbf270638502d4f86157d 100644 (file)
@@ -242,9 +242,8 @@ static int as3722_rtc_resume(struct device *dev)
 }
 #endif
 
-static const struct dev_pm_ops as3722_rtc_pm_ops = {
-       SET_SYSTEM_SLEEP_PM_OPS(as3722_rtc_suspend, as3722_rtc_resume)
-};
+static SIMPLE_DEV_PM_OPS(as3722_rtc_pm_ops, as3722_rtc_suspend,
+                        as3722_rtc_resume);
 
 static struct platform_driver as3722_rtc_driver = {
        .probe = as3722_rtc_probe,