rtc alarm: fix bad index when canceling alarms[]
authorJP Abgrall <jpa@google.com>
Sat, 3 Sep 2011 01:14:12 +0000 (18:14 -0700)
committerJP Abgrall <jpa@google.com>
Thu, 8 Sep 2011 02:49:49 +0000 (19:49 -0700)
It was using ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP_MASK as an
index.

Change-Id: I919860cc71254453e382616bce9fd5455802cb3d
Signed-off-by: JP Abgrall <jpa@google.com>
drivers/rtc/alarm.c

index e0e98dd1eac6cdc87ba9fbb7ba2abc05bcae21c3..28b0df836a304f2d7f88d3c42dbb00cd02db17e3 100644 (file)
@@ -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)