diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-15 10:57:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-17 09:37:48 +0200 |
commit | d29842a5e0673c9cfd096ad474d3037c09aaa158 (patch) | |
tree | 6446cd37efac96343cfcd956c9641adfae2a1bfd | |
parent | 0cdde3782e53dbe90cb715ab290f425fee7ecbbc (diff) | |
download | barebox-d29842a5e0673c9cfd096ad474d3037c09aaa158.tar.gz barebox-d29842a5e0673c9cfd096ad474d3037c09aaa158.tar.xz |
ARM i.MX25/35: initialize barebox_loc earlier
Now that env_push_context is in a coredevice_initcall
we can initialize barebox_loc earlier so that we can
use it inside later initcalls.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-imx/boot.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c index b4bf93bc35..8482b60f40 100644 --- a/arch/arm/mach-imx/boot.c +++ b/arch/arm/mach-imx/boot.c @@ -41,7 +41,7 @@ * Note also that I suspect that the boot source pins are only sampled at * power up. */ -static int imx_boot_save_loc(void) +static int imx_25_35_boot_save_loc(void) { const char *bareboxloc = NULL; uint32_t reg; @@ -86,10 +86,6 @@ static int imx_boot_save_loc(void) return 0; } -/* - * This can only be called after env_push_context() has been called - * so it is a late_initcall. - */ -late_initcall(imx_boot_save_loc); +coredevice_initcall(imx_25_35_boot_save_loc); #endif |