aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-imxdi.c
diff options
context:
space:
mode:
authorJean Delvare <[email protected]>2012-12-20 23:05:19 +0000
committerLinus Torvalds <[email protected]>2012-12-21 01:40:19 +0000
commitba3f7a1765dc4095c757ac82eb14d6824c45e87d (patch)
tree01a0e0bfb9e365e4585761645add330a753258ee /drivers/rtc/rtc-imxdi.c
parentmm: cma: WARN if freed memory is still in use (diff)
downloadkernel-ba3f7a1765dc4095c757ac82eb14d6824c45e87d.tar.gz
kernel-ba3f7a1765dc4095c757ac82eb14d6824c45e87d.zip
drivers/rtc/rtc-imxdi.c: must include <linux/spinlock.h>
Add the missing header include for spinlocks, to avoid potential build failures on specific architectures or configurations. Signed-off-by: Jean Delvare <[email protected]> Acked-by: Sascha Hauer <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/rtc/rtc-imxdi.c')
-rw-r--r--drivers/rtc/rtc-imxdi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c
index 18a4f0dd78a3..8da7a5cf83c6 100644
--- a/drivers/rtc/rtc-imxdi.c
+++ b/drivers/rtc/rtc-imxdi.c
@@ -36,6 +36,7 @@
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/sched.h>
+#include <linux/spinlock.h>
#include <linux/workqueue.h>
#include <linux/of.h>