From 692e468137ebb2a31431c4b3fad1dca0a2da7659 Mon Sep 17 00:00:00 2001 From: JP Abgrall Date: Fri, 2 Sep 2011 18:14:12 -0700 Subject: [PATCH] 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 --- drivers/rtc/alarm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/alarm.c b/drivers/rtc/alarm.c index e0e98dd1eac6..28b0df836a30 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) -- 2.34.1