The code to init and platform setup the ColdFire QSPI devices is duplicated throughout the CPU specific config.c files. It is all common, this is the same QSPI hardware block, just with different base addresses and IRQ numbers used. Cleanup and merge the common QSPI platform code. arch/m68k/include/asm/mcfqspi.h | 15 - arch/m68k/platform/520x/config.c | 146 --------------- arch/m68k/platform/523x/config.c | 317 ++++++++------------------------- arch/m68k/platform/5249/config.c | 162 ---------------- arch/m68k/platform/527x/config.c | 165 ----------------- arch/m68k/platform/528x/config.c | 130 ------------- arch/m68k/platform/532x/config.c | 117 ------------ b/arch/m68k/include/asm/m520xsim.h | 12 + b/arch/m68k/include/asm/m523xsim.h | 13 + b/arch/m68k/include/asm/m5249sim.h | 11 + b/arch/m68k/include/asm/m527xsim.h | 24 ++ b/arch/m68k/include/asm/m528xsim.h | 13 + b/arch/m68k/include/asm/m532xsim.h | 12 + b/arch/m68k/include/asm/mcfqspi.h | 2 b/arch/m68k/platform/520x/config.c | 12 - b/arch/m68k/platform/523x/config.c | 13 - b/arch/m68k/platform/5249/config.c | 9 b/arch/m68k/platform/527x/config.c | 20 -- b/arch/m68k/platform/528x/config.c | 13 - b/arch/m68k/platform/532x/config.c | 12 - b/arch/m68k/platform/coldfire/device.c | 162 ++++++++++++++++ 21 files changed, 375 insertions(+), 1005 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html