The fdt boardsetup command criteria was not unique
[platform/kernel/u-boot.git] / common / cmd_fdt.c
index 7436a95..8592128 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 */
@@ -464,13 +465,13 @@ static int fdt_valid(void)
 /*
  * Parse the user's input, partially heuristic.  Valid formats:
  * <0x00112233 4 05>   - an array of cells.  Numbers follow standard
- *                     C conventions.
+ *                     C conventions.
  * [00 11 22 .. nn] - byte stream
  * "string"    - If the the value doesn't start with "<" or "[", it is
  *                     treated as a string.  Note that the quotes are
  *                     stripped by the parser before we get the string.
  * newval: An array of strings containing the new property as specified
- *     on the command line
+ *     on the command line
  * count: The number of strings in the array
  * data: A bytestream to be placed in the property
  * len: The length of the resulting bytestream