The fdt boardsetup command criteria was not unique
authorGerald Van Baren <vanbaren@cideas.com>
Sat, 7 Jun 2008 16:25:05 +0000 (12:25 -0400)
committerGerald Van Baren <vanbaren@cideas.com>
Tue, 10 Jun 2008 01:13:44 +0000 (21:13 -0400)
It was checking just for "b", which is not unique with respect to the
"boot" command.  Change to check for "boa"[rdsetup].

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
common/cmd_fdt.c

index ede65ae75a2c55cd1d58d3773ed8786198a6da9e..85921287f852243557c878b9dc7334df23eaba25 100644 (file)
@@ -403,7 +403,8 @@ int do_fdt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
        }
 #ifdef CONFIG_OF_BOARD_SETUP
        /* Call the board-specific fixup routine */
-       else if (argv[1][0] == 'b')
+       else if ((argv[1][0] == 'b') && (argv[1][1] == 'o') &&
+                  (argv[1][2] == 'a'))
                ft_board_setup(fdt, gd->bd);
 #endif
        /* Create a chosen node */