diff options
author | JP Abgrall <jpa@google.com> | 2011-12-13 01:23:19 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2012-01-09 10:53:06 +0800 |
commit | fdd595320789c7525576cf4e431b7083316ce6ab (patch) | |
tree | a42f713f4f7773344dac6a82f22bf52a0cf503b0 /drivers | |
parent | 1366abf37a05dc9a3fe69517e45615bb1279c77b (diff) |
rtc alarm: fix bad index when canceling alarms[]
It was using ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP_MASK as an
index.
Change-Id: I919860cc71254453e382616bce9fd5455802cb3d
Signed-off-by: JP Abgrall <jpa@google.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rtc/alarm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/alarm.c b/drivers/rtc/alarm.c index e0e98dd1eac..28b0df836a3 100644 --- a/drivers/rtc/alarm.c +++ b/drivers/rtc/alarm.c @@ -389,7 +389,7 @@ static int alarm_suspend(struct platform_device *pdev, pm_message_t state) hrtimer_cancel(&alarms[ANDROID_ALARM_RTC_WAKEUP].timer); hrtimer_cancel(&alarms[ - ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP_MASK].timer); + ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP].timer); tmp_queue = &alarms[ANDROID_ALARM_RTC_WAKEUP]; if (tmp_queue->first) |