m68knommu: clean up init code in ColdFire 528x startup
authorGreg Ungerer <gerg@uclinux.org>
Sat, 24 Dec 2011 03:04:05 +0000 (13:04 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Sun, 4 Mar 2012 23:43:09 +0000 (09:43 +1000)
We can move all the init calls in the initcall code into the more general
arch setup code (which is config_BSP() here). That makes the 528x consistent
with other ColdFire CPUs setup cod. It means we can get rif of the initcall
setup here all together.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/platform/528x/config.c

index 264456c..98decc6 100644 (file)
@@ -103,12 +103,6 @@ void __init config_BSP(char *commandp, int size)
 #ifdef CONFIG_WILDFIREMOD
        mach_halt = wildfiremod_halt;
 #endif
-}
-
-/***************************************************************************/
-
-static int __init init_BSP(void)
-{
        mach_reset = m528x_cpu_reset;
        mach_sched_init = hw_timer_init;
        m528x_uarts_init();
@@ -116,9 +110,6 @@ static int __init init_BSP(void)
 #ifdef CONFIG_SPI_COLDFIRE_QSPI
        m528x_qspi_init();
 #endif
-       return 0;
 }
 
-arch_initcall(init_BSP);
-
 /***************************************************************************/