[U-Boot-Users] [PATCH] Fix compilation error for TASREG

Tsi-Chung Liew Tsi-Chung.Liew at freescale.com
Fri Aug 1 02:53:06 CEST 2008


From: TsiChung Liew <Tsi-Chung.Liew at freescale.com>

TASREG is ColdFire platform, the include ppc4xx.h in
board/esd/common/flash.c causes conflict.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew at freescale.com>
---
 board/esd/common/flash.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/board/esd/common/flash.c b/board/esd/common/flash.c
index dca10be..bda361e 100644
--- a/board/esd/common/flash.c
+++ b/board/esd/common/flash.c
@@ -22,7 +22,9 @@
  */
 
 #include <common.h>
+#ifdef __PPC__
 #include <ppc4xx.h>
+#endif
 #include <asm/processor.h>
 
 flash_info_t	flash_info[CFG_MAX_FLASH_BANKS]; /* info for FLASH chips	*/
-- 
1.5.6.4





More information about the U-Boot mailing list