summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2011-12-02 14:02:29 +0800
committerAndy Green <andy.green@linaro.org>2011-12-02 14:02:29 +0800
commitb7e8ec4b6e53c1675c010863e318b98e295c1fba (patch)
tree47f39a1480c8e2cb9232f5e385551b9af1a81f81
parent8213868a9401d6cad5e9d7fc904b1d6b650ff3f2 (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)