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)
commit52cd4e5c620af9e21b5298bf01844b98573505a7
tree6833280fd9b65c5e59472e9d63b1f975874af05d
parent9f381a61f58bb6487c93ce2233bb9992f8ea9211
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