]> git.sur5r.net Git - u-boot/commitdiff
OMAP3 Fix compiler warning for v7_flush_dcache_all
authorTom Rix <Tom.Rix@windriver.com>
Tue, 30 Jun 2009 20:04:13 +0000 (15:04 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 18 Jul 2009 20:36:32 +0000 (22:36 +0200)
On build of omap3 targets in MAKEALL, the *.ERR files have

cpu.c: In function 'cleanup_before_linux':
cpu.c:64: warning: implicit declaration of function 'v7_flush_dcache_all'
cpu.c:64: warning: implicit declaration of function 'get_device_type

The functions v7_flush_dcache_all and get_device_type are declared
in include/asm-arm/arch-omap3/sys_proto.h, so use this file to
declare the functions.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
cpu/arm_cortexa8/cpu.c

index 822ee7d97e2c87168b967898cc41e2e6a0c36374..5a5981e4054fada5a3aff183e18efed8844f7537 100644 (file)
@@ -35,6 +35,9 @@
 #include <command.h>
 #include <asm/system.h>
 #include <asm/cache.h>
+#ifndef CONFIG_L2_OFF
+#include <asm/arch/sys_proto.h>
+#endif
 
 static void cache_flush(void);