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:
parent
a202b02196
commit
a0d7e52793
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue