summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/freescale/m5329evb/m5329evb.c7
-rw-r--r--include/asm-m68k/io.h7
2 files changed, 7 insertions, 7 deletions
diff --git a/board/freescale/m5329evb/m5329evb.c b/board/freescale/m5329evb/m5329evb.c
index d180b6f..058cda5 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 8dea02a..114efb1 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__ */