]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: ele_ahab: use hextoul
authorPeng Fan <peng.fan@nxp.com>
Thu, 15 Jun 2023 10:09:07 +0000 (18:09 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 13 Jul 2023 09:29:40 +0000 (11:29 +0200)
Use hextoul which looks a bit simpler.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/ele_ahab.c

index 9bb37919638af9065235a92f48617e85106483ab..5f23486304c9f667e1ee954f6f76deefb0232af8 100644 (file)
@@ -402,7 +402,7 @@ static int do_authenticate(struct cmd_tbl *cmdtp, int flag, int argc,
        if (argc < 2)
                return CMD_RET_USAGE;
 
-       addr = simple_strtoul(argv[1], NULL, 16);
+       addr = hextoul(argv[1], NULL);
 
        printf("Authenticate OS container at 0x%lx\n", addr);