drivers/rtc/rtc-tps65910.c: enable/disable wake in suspend/resume
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 22 Feb 2013 00:44:35 +0000 (16:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:28 +0000 (17:22 -0800)
commiteb5eba4ef72248b976465906cfed5fca2e9d8831
tree9bbe3909fae02a5c134f095faea8d27ed2690423
parent36d6182411b9f597f9f85ec0c4bb00909fd16d59
drivers/rtc/rtc-tps65910.c: enable/disable wake in suspend/resume

Making the rtc driver as wakeup capabale and leaving the wake
enable/disable decision to user space through a sysfs attribute.

In suspend, enable wake if device wakeup enabled.  In resume disable wake
again.

This change is inline with the Documentation/power/devices.txt#
/sys/devices/.../power/wakeup files

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-tps65910.c