rtc alarm: fix bad index when canceling alarms[]
JP Abgrall [Sat, 3 Sep 2011 01:14:12 +0000 (18:14 -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 e0e98dd..28b0df8 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)