diff options
author | Anson Huang <anson.huang@nxp.com> | 2019-04-11 02:19:48 +0000 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-04-11 23:18:33 +0200 |
commit | fbc5ee9a6955e6e1a10b736856f9f8f8984ce809 (patch) | |
tree | a3ec1a6b5712754c85edd8f6cd6ec78767b2a652 /drivers/rtc/rtc-lpc32xx.c | |
parent | rtc: mxc: use dev_pm_set_wake_irq() to simplify code (diff) | |
download | linux-dev-fbc5ee9a6955e6e1a10b736856f9f8f8984ce809.tar.xz linux-dev-fbc5ee9a6955e6e1a10b736856f9f8f8984ce809.zip |
rtc: mxc_v2: use dev_pm_set_wake_irq() to simplify code
With calling dev_pm_set_wake_irq() to set MXC_V2 RTC as wakeup source
for suspend, generic wake irq mechanism will automatically enable
it as wakeup source when suspend, then the suspend/resume callback
which are ONLY for enabling/disabling irq wake can be removed, it
simplifies the code.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-lpc32xx.c')
0 files changed, 0 insertions, 0 deletions