summaryrefslogtreecommitdiffstats
path: root/drivers/staging/android/alarm.c
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2012-02-09 14:24:35 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-10 10:06:19 -0800
commit79ef07162fb088f8afe7709881e2b5e2a4098202 (patch)
tree254a10a677ce5984c8d1b3980c147a9a73ff185e /drivers/staging/android/alarm.c
parentf2f28eacf240baffbba5e9744278f85fc62ddd60 (diff)
downloadop-kernel-dev-79ef07162fb088f8afe7709881e2b5e2a4098202.zip
op-kernel-dev-79ef07162fb088f8afe7709881e2b5e2a4098202.tar.gz
staging: android-alarm: HACK: wakelock workaround
Allow Android alarmtimer device to build while wakelocks are still out of tree. CC: Arve Hjønnevåg <arve@android.com> CC: Android Kernel Team <kernel-team@android.com> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android/alarm.c')
-rw-r--r--drivers/staging/android/alarm.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/staging/android/alarm.c b/drivers/staging/android/alarm.c
index 1f8bb5c..5370fdc 100644
--- a/drivers/staging/android/alarm.c
+++ b/drivers/staging/android/alarm.c
@@ -21,9 +21,19 @@
#include <linux/rtc.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
-#include <linux/wakelock.h>
#include "android_alarm.h"
+/* XXX - Hack out wakelocks, while they are out of tree */
+struct wake_lock {
+ int i;
+};
+#define wake_lock(x)
+#define wake_lock_timeout(x, y)
+#define wake_unlock(x)
+#define WAKE_LOCK_SUSPEND 0
+#define wake_lock_init(x, y, z) ((x)->i = 1)
+#define wake_lock_destroy(x)
+
#define ANDROID_ALARM_PRINT_ERROR (1U << 0)
#define ANDROID_ALARM_PRINT_INIT_STATUS (1U << 1)
#define ANDROID_ALARM_PRINT_TSET (1U << 2)
OpenPOWER on IntegriCloud