]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: mxc: use dev_pm_set_wake_irq() to simplify code
authorAnson Huang <anson.huang@nxp.com>
Thu, 11 Apr 2019 02:06:04 +0000 (02:06 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 11 Apr 2019 21:18:32 +0000 (23:18 +0200)
commitf65dbb3caba5a86ba0f27d9d5c430c9aa84883aa
treedc96abdb78cd7a0e3fab254cd5666bc20540967e
parentac8bc9cf79e4d2bc2ad4d4621877a5ad8aa43b9d
rtc: mxc: use dev_pm_set_wake_irq() to simplify code

With calling dev_pm_set_wake_irq() to set MXC 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>
drivers/rtc/rtc-mxc.c