summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2011-10-25 11:41:50 +0800
committerAndy Green <andy.green@linaro.org>2011-10-25 11:41:50 +0800
commit604e0d083ebfc6c928932c611262fd3049e5e498 (patch)
tree34f1b2de97792e563a02aaef99f2d7310738595d
parent9bf0b0061a23b1b3a1feb7689d5c2f9c7eced28f (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>
-rw-r--r--drivers/rtc/alarm.c2
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)