[PATCH] ARM: sunxi: Include linux/delay.h
From: Axel Lin
Date: Sun Dec 02 2012 - 10:32:19 EST
This fixes below build error:
CC arch/arm/mach-sunxi/sunxi.o
arch/arm/mach-sunxi/sunxi.c: In function 'sunxi_restart':
arch/arm/mach-sunxi/sunxi.c:55:3: error: implicit declaration of function 'mdelay' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-sunxi/sunxi.o] Error 1
make: *** [arch/arm/mach-sunxi] Error 2
Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>
---
arch/arm/mach-sunxi/sunxi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c
index dc634ae..fba8d6e 100644
--- a/arch/arm/mach-sunxi/sunxi.c
+++ b/arch/arm/mach-sunxi/sunxi.c
@@ -12,6 +12,7 @@
#include <linux/kernel.h>
#include <linux/init.h>
+#include <linux/delay.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/