[U-Boot] [PATCH 2/2] OMAP3 Fix compiler warning for get_device_type

Tom Rix
2009-07-06T16:47:59Z

When MAKEALL arm is run, the omap3 board *.ERR files contains this
warning

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

To fix this warning, use the declaration of get_device_type
in sys_proto.h

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
---
cpu/arm_cortexa8/cpu.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/cpu/arm_cortexa8/cpu.c b/cpu/arm_cortexa8/cpu.c
index 7f57ee9..ab59ab0 100644
--- a/cpu/arm_cortexa8/cpu.c
+++ b/cpu/arm_cortexa8/cpu.c
@@ -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);

--
1.6.0.5