mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
m68knommu: clean up init code in ColdFire 523x startup
We can move the QSPI init call to the more general config_BSP() code on the 523x platorm setup code. Then we can remove the initcall code all together. We can also remove the un-needed include of mcfuart.h while we are cleaning up here too. Also I noticed that we are not calling the fec_init() code here, and we should be doing that. Put that back in too. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
This commit is contained in:
parent
fa1fc24662
commit
2ba168a913
1 changed files with 1 additions and 10 deletions
|
@ -19,7 +19,6 @@
|
||||||
#include <asm/machdep.h>
|
#include <asm/machdep.h>
|
||||||
#include <asm/coldfire.h>
|
#include <asm/coldfire.h>
|
||||||
#include <asm/mcfsim.h>
|
#include <asm/mcfsim.h>
|
||||||
#include <asm/mcfuart.h>
|
|
||||||
|
|
||||||
/***************************************************************************/
|
/***************************************************************************/
|
||||||
|
|
||||||
|
@ -67,18 +66,10 @@ void __init config_BSP(char *commandp, int size)
|
||||||
{
|
{
|
||||||
mach_reset = m523x_cpu_reset;
|
mach_reset = m523x_cpu_reset;
|
||||||
mach_sched_init = hw_timer_init;
|
mach_sched_init = hw_timer_init;
|
||||||
}
|
m523x_fec_init();
|
||||||
|
|
||||||
/***************************************************************************/
|
|
||||||
|
|
||||||
static int __init init_BSP(void)
|
|
||||||
{
|
|
||||||
#ifdef CONFIG_SPI_COLDFIRE_QSPI
|
#ifdef CONFIG_SPI_COLDFIRE_QSPI
|
||||||
m523x_qspi_init();
|
m523x_qspi_init();
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
arch_initcall(init_BSP);
|
|
||||||
|
|
||||||
/***************************************************************************/
|
/***************************************************************************/
|
||||||
|
|
Loading…
Reference in a new issue