]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 21 May 2011 22:13:10 +0000 (15:13 -0700)
commitb3ec0162bf3d8de20df658daac7abee0dcaf98d0
tree9ea31d2b4b2458fa53811f7c955823ce6aa801da
parent0d88dc66b6ca8011870d03b7fb1e65500a02bc4b
drivers/rtc/rtc-s3c.c: fixup wake support for rtc

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>
drivers/rtc/rtc-s3c.c