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 /common/cmd_bootm.c | |
| parent | a01ebd9679f07421ec5abfda5dc0ab76c7202d3b (diff) | |
| download | olio-uboot-2014.01-590d3cacb98cb377b127869b58507d2afe9c904a.tar.xz olio-uboot-2014.01-590d3cacb98cb377b127869b58507d2afe9c904a.zip | |
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 'common/cmd_bootm.c')
| -rw-r--r-- | common/cmd_bootm.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c index 778f6a429..989bf737f 100644 --- a/common/cmd_bootm.c +++ b/common/cmd_bootm.c @@ -547,8 +547,7 @@ int do_bootm_subcommand (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv  #if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_SYS_BOOTMAPSZ)  		case BOOTM_STATE_FDT:  		{ -			ulong bootmap_base = getenv_bootm_low(); -			ret = boot_relocate_fdt(&images.lmb, bootmap_base, +			ret = boot_relocate_fdt(&images.lmb,  				&images.ft_addr, &images.ft_len);  			break;  		} |