summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2012-02-09 14:24:39 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-10 10:08:01 -0800
commitf2d3c6898abd6c5d69e6d1504413434df1ea2538 (patch)
tree7862046ff226d1b19109c0a8fb3e25122fa43779 /drivers
parent66c48107719b751e8ec360034bc84ee1511147e4 (diff)
staging: android-alarm: Fix bad index when canceling alarms[]
It was using ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP_MASK as an index. CC: Arve Hjønnevåg <arve@android.com> CC: Android Kernel Team <kernel-team@android.com> CC: JP Abgrall <jpa@google.com> Change-Id: I919860cc71254453e382616bce9fd5455802cb3d Signed-off-by: JP Abgrall <jpa@google.com> [jstultz: Tweaked commit subject] Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/android/alarm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/alarm.c b/drivers/staging/android/alarm.c
index 445c0b12c473..642a22f01c1b 100644
--- a/drivers/staging/android/alarm.c
+++ b/drivers/staging/android/alarm.c
@@ -400,7 +400,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)