[PATCH] ARM: sunxi: Include linux/delay.h
Axel Lin
axel.lin at ingics.com
Sun Dec 2 10:32:19 EST 2012
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 at ingics.com>
---
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
More information about the linux-arm-kernel
mailing list