aboutsummaryrefslogtreecommitdiff
path: root/arch/nds32/lib/bootm.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nds32/lib/bootm.c')
-rw-r--r--arch/nds32/lib/bootm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nds32/lib/bootm.c b/arch/nds32/lib/bootm.c
index b3b8bc2..4cb0f53 100644
--- a/arch/nds32/lib/bootm.c
+++ b/arch/nds32/lib/bootm.c
@@ -64,7 +64,7 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
s = env_get("machid");
if (s) {
- machid = simple_strtoul(s, NULL, 16);
+ machid = hextoul(s, NULL);
printf("Using machid 0x%x from environment\n", machid);
}