]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-s3c.c: fixup wake support for rtc
authorBen Dooks <ben-linux@fluff.org>
Wed, 11 May 2011 22:13:28 +0000 (15:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 May 2011 01:50:44 +0000 (18:50 -0700)
commitbe9303e20be6c995ffb688d4df880e0051596c6b
tree6833280fd9b65c5e59472e9d63b1f975874af05d
parentb22e45fcff9299ad79dd7124576120209807e8a1
drivers/rtc/rtc-s3c.c: fixup wake support for rtc

The driver is not balancing set_irq and disable_irq_wake() calls, so
ensure that it keeps track of whether the wake is enabled.

The fixes the following error on S3C6410 devices:

  WARNING: at kernel/irq/manage.c:382 set_irq_wake+0x84/0xec()
  Unbalanced IRQ 92 wake disable

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-s3c.c