Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/rtc/rtc-as3722.c: 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Jingoo Han and committed by
Linus Torvalds
d55255cb b5ada460

+2 -3
+2 -3
drivers/rtc/rtc-as3722.c
··· 242 242 } 243 243 #endif 244 244 245 - static const struct dev_pm_ops as3722_rtc_pm_ops = { 246 - SET_SYSTEM_SLEEP_PM_OPS(as3722_rtc_suspend, as3722_rtc_resume) 247 - }; 245 + static SIMPLE_DEV_PM_OPS(as3722_rtc_pm_ops, as3722_rtc_suspend, 246 + as3722_rtc_resume); 248 247 249 248 static struct platform_driver as3722_rtc_driver = { 250 249 .probe = as3722_rtc_probe,