rtc: alarm: set power_on_alarm again when calling alarmtimer_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 10:54:11 +08:00 committed by Gerrit - the friendly Code Review server
parent a202b02196
commit a0d7e52793
1 changed files with 2 additions and 0 deletions

View File

@ -365,6 +365,8 @@ static int alarmtimer_resume(struct device *dev)
if (!rtc)
return 0;
rtc_timer_cancel(rtc, &rtctimer);
set_power_on_alarm(power_on_alarm , 1);
return 0;
}
#else