The code to init and platform setup the ColdFire UART devices is duplicated throughout the CPU specific config.c files. It is all common, these are the same UARTs, just with different base addresses and IRQ numbers used. Cleanup and merge the common UART code. Ends up saving quite a few hundred lines of code. arch/m68k/platform/5206/config.c | 78 +++------------------------------ arch/m68k/platform/520x/config.c | 65 +++++---------------------- arch/m68k/platform/523x/config.c | 23 --------- arch/m68k/platform/5249/config.c | 63 +++----------------------- arch/m68k/platform/5272/config.c | 46 +++---------------- arch/m68k/platform/527x/config.c | 44 ------------------ arch/m68k/platform/528x/config.c | 45 +------------------ arch/m68k/platform/5307/config.c | 78 +++------------------------------ arch/m68k/platform/532x/config.c | 42 +---------------- arch/m68k/platform/5407/config.c | 78 +++------------------------------ arch/m68k/platform/54xx/config.c | 76 +++----------------------------- arch/m68k/platform/coldfire/device.c | 20 ++++++++ b/arch/m68k/include/asm/m5206sim.h | 10 ++-- b/arch/m68k/include/asm/m520xsim.h | 10 ++-- b/arch/m68k/include/asm/m523xsim.h | 12 +++-- b/arch/m68k/include/asm/m5249sim.h | 7 ++ b/arch/m68k/include/asm/m5272sim.h | 8 +-- b/arch/m68k/include/asm/m527xsim.h | 10 ++-- b/arch/m68k/include/asm/m528xsim.h | 12 +++-- b/arch/m68k/include/asm/m5307sim.h | 10 ++-- b/arch/m68k/include/asm/m532xsim.h | 10 ++-- b/arch/m68k/include/asm/m5407sim.h | 6 +- b/arch/m68k/include/asm/m54xxsim.h | 16 ++++-- b/arch/m68k/include/asm/mcfuart.h | 5 +- b/arch/m68k/platform/5206/config.c | 12 ++--- b/arch/m68k/platform/520x/config.c | 12 ++--- b/arch/m68k/platform/523x/config.c | 12 ++--- b/arch/m68k/platform/5249/config.c | 12 ++--- b/arch/m68k/platform/5272/config.c | 8 +-- b/arch/m68k/platform/527x/config.c | 12 ++--- b/arch/m68k/platform/528x/config.c | 12 ++--- b/arch/m68k/platform/5307/config.c | 12 ++--- b/arch/m68k/platform/532x/config.c | 12 ++--- b/arch/m68k/platform/5407/config.c | 12 ++--- b/arch/m68k/platform/54xx/config.c | 16 +++--- b/arch/m68k/platform/coldfire/Makefile | 2 b/arch/m68k/platform/coldfire/device.c | 60 +++++++++++++++++++++++++ 37 files changed, 299 insertions(+), 669 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