diff options
author | Grant Likely <grant.likely@linaro.org> | 2011-03-28 09:58:34 +0000 |
---|---|---|
committer | Gerald Van Baren <gvb@unssw.com> | 2011-04-25 21:11:19 -0400 |
commit | 590d3cacb98cb377b127869b58507d2afe9c904a (patch) | |
tree | cf9affb045d88ab6c1c9a00fa44744d6fb25e2a1 /arch/m68k/lib/bootm.c | |
parent | a01ebd9679f07421ec5abfda5dc0ab76c7202d3b (diff) |
Stop passing around bootmem_base value.
For the calls to boot_relocate_fdt(), boot_get_cmdline(), and
boot_get_kbd(), the value of bootmem_base is always obtained by
calling getenv_bootm_low(). Since the value always comes from the
same source, the calling signature for those functions can be
simplified by making them call getenv_bootm_low() directly.
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'arch/m68k/lib/bootm.c')
-rw-r--r-- | arch/m68k/lib/bootm.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/m68k/lib/bootm.c b/arch/m68k/lib/bootm.c index 76a2fb27c1..1229ac7f25 100644 --- a/arch/m68k/lib/bootm.c +++ b/arch/m68k/lib/bootm.c @@ -71,7 +71,6 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima int ret; ulong cmd_start, cmd_end; - ulong bootmap_base; bd_t *kbd; void (*kernel) (bd_t *, ulong, ulong, ulong, ulong); struct lmb *lmb = &images->lmb; @@ -79,17 +78,15 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima if ((flag != 0) && (flag != BOOTM_STATE_OS_GO)) return 1; - bootmap_base = getenv_bootm_low(); - /* allocate space and init command line */ - ret = boot_get_cmdline (lmb, &cmd_start, &cmd_end, bootmap_base); + ret = boot_get_cmdline (lmb, &cmd_start, &cmd_end); if (ret) { puts("ERROR with allocation of cmdline\n"); goto error; } /* allocate space for kernel copy of board info */ - ret = boot_get_kbd (lmb, &kbd, bootmap_base); + ret = boot_get_kbd (lmb, &kbd); if (ret) { puts("ERROR with allocation of kernel bd\n"); goto error; |