From 0d2fe946474196e586e492d9e9b381e184c774ea Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Sat, 24 Dec 2011 01:17:10 +1000 Subject: m68knommu: merge common ColdFire UART platform setup code The ColdFire UART is common to all ColdFire CPU's. No need to duplicate its platform setup code for every CPU family member. Merge all the setup code into a single shared file. Signed-off-by: Greg Ungerer --- arch/m68k/platform/5206/config.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'arch/m68k/platform/5206') diff --git a/arch/m68k/platform/5206/config.c b/arch/m68k/platform/5206/config.c index a8ba8106cbc..fdef300a152 100644 --- a/arch/m68k/platform/5206/config.c +++ b/arch/m68k/platform/5206/config.c @@ -20,30 +20,6 @@ /***************************************************************************/ -static struct mcf_platform_uart m5206_uart_platform[] = { - { - .mapbase = MCFUART_BASE0, - .irq = MCF_IRQ_UART0, - }, - { - .mapbase = MCFUART_BASE1, - .irq = MCF_IRQ_UART1, - }, - { }, -}; - -static struct platform_device m5206_uart = { - .name = "mcfuart", - .id = 0, - .dev.platform_data = m5206_uart_platform, -}; - -static struct platform_device *m5206_devices[] __initdata = { - &m5206_uart, -}; - -/***************************************************************************/ - static void __init m5206_uarts_init(void) { /* UART0 interrupt setup */ @@ -107,13 +83,3 @@ void __init config_BSP(char *commandp, int size) } /***************************************************************************/ - -static int __init init_BSP(void) -{ - platform_add_devices(m5206_devices, ARRAY_SIZE(m5206_devices)); - return 0; -} - -arch_initcall(init_BSP); - -/***************************************************************************/ -- cgit v1.2.3-70-g09d2