diff options
author | Tom Rini <trini@ti.com> | 2014-11-07 16:18:35 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-07 16:18:35 -0500 |
commit | cfa1bd0774eafcba4791bad4d66f01b8f0dc6f94 (patch) | |
tree | 13740fe096447814d65871bc9c15bbac26b0e854 /board/ti/ks2_evm/board.c | |
parent | 11ada9225a16ed2d8ddbf0715a2416245a777cbc (diff) | |
parent | 40bbd52a79bdf2175a2e44272bead2bc194a3293 (diff) | |
download | u-boot-imx-cfa1bd0774eafcba4791bad4d66f01b8f0dc6f94.zip u-boot-imx-cfa1bd0774eafcba4791bad4d66f01b8f0dc6f94.tar.gz u-boot-imx-cfa1bd0774eafcba4791bad4d66f01b8f0dc6f94.tar.bz2 |
Merge git://git.denx.de/u-boot-ti
Diffstat (limited to 'board/ti/ks2_evm/board.c')
-rw-r--r-- | board/ti/ks2_evm/board.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c index 4029493..ff7bc4b 100644 --- a/board/ti/ks2_evm/board.c +++ b/board/ti/ks2_evm/board.c @@ -122,7 +122,6 @@ void ft_board_setup(void *blob, bd_t *bd) int nbanks; u64 size[2]; u64 start[2]; - char name[32]; int nodeoffset; u32 ddr3a_size; int unitrd_fixup = 0; @@ -158,15 +157,13 @@ void ft_board_setup(void *blob, bd_t *bd) } /* reserve memory at start of bank */ - sprintf(name, "mem_reserve_head"); - env = getenv(name); + env = getenv("mem_reserve_head"); if (env) { start[0] += ustrtoul(env, &endp, 0); size[0] -= ustrtoul(env, &endp, 0); } - sprintf(name, "mem_reserve"); - env = getenv(name); + env = getenv("mem_reserve"); if (env) size[0] -= ustrtoul(env, &endp, 0); |