Fix fdt boardsetup command parsing
authorKumar Gala <galak@kernel.crashing.org>
Wed, 20 Feb 2008 20:32:36 +0000 (14:32 -0600)
committerGerald Van Baren <vanbaren@cideas.com>
Wed, 19 Mar 2008 01:03:45 +0000 (21:03 -0400)
The introduciton of the 'fdt bootcpu' broke parsing for 'fdt boardsetup'.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
common/cmd_fdt.c

index c31560bd65e15411eab50c60e83c3d9b658445f4..14c3fa022e0c256ad8c73ed345b485f568ca7a0a 100644 (file)
@@ -324,7 +324,8 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        /********************************************************************
         * Set boot cpu id
         ********************************************************************/
-       } else if ((argv[1][0] == 'b') && (argv[1][1] == 'o')) {
+       } else if ((argv[1][0] == 'b') && (argv[1][1] == 'o') &&
+                  (argv[1][2] == 'o')) {
                unsigned long tmp = simple_strtoul(argv[2], NULL, 16);
                fdt_set_boot_cpuid_phys(fdt, tmp);