]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_sf.c
mpc85xx, mpc86xx: Fix gd->cpu pointer after relocation
[u-boot] / common / cmd_sf.c
index 2d463a8c978d628914821313818d3a3816f94144..d69ae6a1ba90a2247446b1096b1f39618622d588 100644 (file)
@@ -2,7 +2,9 @@
  * Command for accessing SPI flash.
  *
  * Copyright (C) 2008 Atmel Corporation
+ * Licensed under the GPL-2 or later.
  */
+
 #include <common.h>
 #include <spi_flash.h>
 
@@ -48,7 +50,7 @@ static int do_spi_flash_probe(int argc, char *argv[])
                        goto usage;
        }
        if (argc >= 4) {
-               mode = simple_strtoul(argv[3], &endp, 0);
+               mode = simple_strtoul(argv[3], &endp, 16);
                if (*argv[3] == 0 || *endp != 0)
                        goto usage;
        }