Merge tag 'dm-pull-5dec21a' of https://source.denx.de/u-boot/custodians/u-boot-dm...
[platform/kernel/u-boot.git] / common / bedbug.c
index 18a35ca..c76fa48 100644 (file)
@@ -1005,9 +1005,9 @@ long read_number (char *txt)
        }
 
        if (txt[0] == '0' && (txt[1] == 'x' || txt[1] == 'X'))  /* hex */
-               val = simple_strtoul (&txt[2], NULL, 16);
+               val = hextoul(&txt[2], NULL);
        else                                            /* decimal */
-               val = simple_strtoul (txt, NULL, 10);
+               val = dectoul(txt, NULL);
 
        if (is_neg)
                val = -val;