rtc: alarm: set power_on_alarm again when calling alarm_resume

The power_on alarm might be replaced or cleared during alarm
suspend and resume process.So restore the power_on alarm into RTC
during alarm resume.

Change-Id: I1eefb082f9dfbd78517f3da1cc60a989853555fd
Signed-off-by: Mao Jinlong <c_jmao@codeaurora.org>
This commit is contained in:
Mao Jinlong
2014-08-22 14:41:23 +08:00
parent 91e7156b67
commit 9c66e26930
+1
View File
@@ -523,6 +523,7 @@ static int alarm_resume(struct platform_device *pdev)
false);
spin_unlock_irqrestore(&alarm_slock, flags);
set_alarm_time_to_rtc(power_on_alarm);
return 0;
}