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 dca10be..bda361e 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        */