projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77b8f20
)
microblaze: Use getenv_ulong() in place of getenv(), strtoul
author
Simon Glass
<sjg@chromium.org>
Thu, 13 Oct 2011 14:43:10 +0000
(14:43 +0000)
committer
Wolfgang Denk
<wd@denx.de>
Sun, 23 Oct 2011 21:33:18 +0000
(23:33 +0200)
This changes the board code to use the new getenv_ulong() function.
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/microblaze/lib/board.c
patch
|
blob
|
history
diff --git
a/arch/microblaze/lib/board.c
b/arch/microblaze/lib/board.c
index ca5882dd0d8e607f9ae85864cc09c05ee69e3e0e..9828b7630f99ade9015da2030a978735d60c794c 100644
(file)
--- a/
arch/microblaze/lib/board.c
+++ b/
arch/microblaze/lib/board.c
@@
-172,9
+172,8
@@
void board_init (void)
/* Initialize the console (after the relocation and devices init) */
console_init_r();
- if ((s = getenv ("loadaddr")) != NULL) {
- load_addr = simple_strtoul (s, NULL, 16);
- }
+ /* Initialize from environment */
+ load_addr = getenv_ulong("loadaddr", 16, load_addr);
#if defined(CONFIG_CMD_NET)
/* IP Address */