Fix compilation error for TASREG
authorTsiChung Liew <Tsi-Chung.Liew@freescale.com>
Fri, 1 Aug 2008 00:53:06 +0000 (19:53 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 1 Aug 2008 10:35:35 +0000 (12:35 +0200)
TASREG is ColdFire platform, the include ppc4xx.h in
board/esd/common/flash.c causes conflict.

Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
board/esd/common/flash.c

index dca10be1b5ac31a78dd569be906777a0aca80867..bda361ead949ec5c63988729e6b3cd9f2ab15c1c 100644 (file)
@@ -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        */