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)
committerSteve Conklin <sconklin@canonical.com>
Thu, 2 Jun 2011 19:23:22 +0000 (14:23 -0500)
commit2c6636232465c79471b11ee2f04e2b2232c3ec4d
tree9e83b84ddc84be5b2f7536bd5e8ef6cd6b44ec62
parentf5f55a6cc7677dac83766d9fad52cfa7109d6831
drivers/rtc/rtc-s3c.c: fixup wake support for rtc

BugLink: http://bugs.launchpad.net/bugs/788691

commit 52cd4e5c620af9e21b5298bf01844b98573505a7 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Steve Conklin <sconklin@canonical.com>
drivers/rtc/rtc-s3c.c