[PATCH] rtc-cmos: fix wakeup from S5 without CONFIG_PM_SLEEP

2014-10-04 Thread Daniel Glöckner
b5ada4600d broke wakeup from S5 by making cmos_poweroff a nop unless CONFIG_PM_SLEEP was defined. Fix this by restricting the #ifdef to cmos_resume and restoring the old dependency on CONFIG_PM for cmos_suspend and cmos_poweroff. Signed-off-by: Daniel Glöckner --- drivers/rtc/rtc-cmos.c | 5

[PATCH] rtc-cmos: fix wakeup from S5 without CONFIG_PM_SLEEP

2014-10-04 Thread Daniel Glöckner
b5ada4600d broke wakeup from S5 by making cmos_poweroff a nop unless CONFIG_PM_SLEEP was defined. Fix this by restricting the #ifdef to cmos_resume and restoring the old dependency on CONFIG_PM for cmos_suspend and cmos_poweroff. Signed-off-by: Daniel Glöckner daniel...@gmx.net ---