]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
rtc: snvs: return error in case enable_irq_wake fails
authorStefan Agner <stefan@agner.ch>
Wed, 20 Apr 2016 23:09:57 +0000 (16:09 -0700)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 20 May 2016 10:33:51 +0000 (12:33 +0200)
commita350259da4b0556fcf276c506a14f406d608c2b3
tree5328cfc3bf0524b9af9c32d19022e118355b5e25
parentb62c3a1158c0abc98e03c68934fa7ee6ca10dd49
rtc: snvs: return error in case enable_irq_wake fails

If enable_irq_wake fails, we should return that error code so that
entering suspend fails. Otherwise we will get a WARNING along with
the hint of a unbalanced wake disable:
Unbalanced IRQ 37 wake disable

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-snvs.c