Moved sync() from board file to include/asm-m68k/io.h
authorTsiChungLiew <Tsi-Chung.Liew@freescale.com>
Sun, 5 Aug 2007 08:43:30 +0000 (03:43 -0500)
committerStefan Roese <sr@denx.de>
Wed, 8 Aug 2007 07:47:16 +0000 (09:47 +0200)
Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
board/freescale/m5329evb/m5329evb.c
include/asm-m68k/io.h

index d180b6f43f1ebbd209b220930b2450abfe609870..058cda5b257252909855490ade49497981be3d3d 100644 (file)
@@ -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 */
index 8dea02abab532d880af3ce9e07308cd4c738f4fd..114efb15d7e35f68f17ccdd3342457e6d716aaa7 100644 (file)
@@ -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__ */