Skip to content

Commit

Permalink
staging: android-alarm: Fix include compile issues
Browse files Browse the repository at this point in the history
The file asm/mach/time.h doesn't exist on all arches,
so include <linux/time.h>. Also linux/sysdev.h is gone
so kill it.

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>
  • Loading branch information
John Stultz authored and Greg Kroah-Hartman committed Feb 10, 2012
1 parent bf647ea commit d47908b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/android/alarm-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
*
*/

#include <asm/mach/time.h>
#include <linux/time.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/miscdevice.h>
#include <linux/fs.h>
#include <linux/platform_device.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/sysdev.h>
#include <linux/uaccess.h>
#include <linux/wakelock.h>
#include "android_alarm.h"
Expand Down
3 changes: 1 addition & 2 deletions drivers/staging/android/alarm.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
*
*/

#include <asm/mach/time.h>
#include <linux/time.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/miscdevice.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/sysdev.h>
#include <linux/wakelock.h>
#include "android_alarm.h"

Expand Down

0 comments on commit d47908b

Please sign in to comment.