From: TsiChungLiew Date: Sun, 5 Aug 2007 08:43:30 +0000 (-0500) Subject: Moved sync() from board file to include/asm-m68k/io.h X-Git-Tag: v1.3.0-rc1~19^2~2^2~17^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6fde84a44b7e575ea80fe0e2d5be3b6f73d1e630;p=u-boot Moved sync() from board file to include/asm-m68k/io.h Signed-off-by: TsiChungLiew --- diff --git a/board/freescale/m5329evb/m5329evb.c b/board/freescale/m5329evb/m5329evb.c index d180b6f43f..058cda5b25 100644 --- a/board/freescale/m5329evb/m5329evb.c +++ b/board/freescale/m5329evb/m5329evb.c @@ -87,10 +87,3 @@ int testdram(void) return (0); } -#ifdef CFG_FLASH_CFI -void sync(void) -{ - /* This sync function is PowerPC intruction, - coldfire does not have this instruction. Dummy function */ -} -#endif /* CFG_FLASH_CFI */ diff --git a/include/asm-m68k/io.h b/include/asm-m68k/io.h index 8dea02abab..114efb15d7 100644 --- a/include/asm-m68k/io.h +++ b/include/asm-m68k/io.h @@ -211,4 +211,11 @@ extern inline void out_be32(volatile unsigned *addr, int val) *addr = val; } +static inline void sync(void) +{ + /* This sync function is for PowerPC or other architecture instruction + * ColdFire does not have this instruction. Dummy function, added for + * compatibility (CFI driver) + */ +} #endif /* __ASM_M68K_IO_H__ */