projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5ada46
)
drivers/rtc/rtc-as3722.c: use SIMPLE_DEV_PM_OPS macro
author
Jingoo Han
<
[email protected]
>
Thu, 3 Apr 2014 21:50:06 +0000
(14:50 -0700)
committer
Linus Torvalds
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-as3722.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-as3722.c
b/drivers/rtc/rtc-as3722.c
index 4af016985890e6d70a7f57a9b7c605cde1d9723d..9f38eda69154d4b2b5fdbf270638502d4f86157d 100644
(file)
--- a/
drivers/rtc/rtc-as3722.c
+++ b/
drivers/rtc/rtc-as3722.c
@@
-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,