OSDN Git Service

rtc: snvs: use dev_pm_set_wake_irq() to simplify code
authorAnson Huang <anson.huang@nxp.com>
Wed, 27 Mar 2019 06:18:20 +0000 (06:18 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:11 +0000 (10:07 +0200)
commite7afddb2b4d24fba318f5e74216bae06dcb36a10
tree921ca809c9d11d83b4cd4fea831ca735981b5c12
parent184a182ed52a9b224cfa081a01e920c6ab1ce0bd
rtc: snvs: use dev_pm_set_wake_irq() to simplify code

With calling dev_pm_set_wake_irq() to set SNVS 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-snvs.c