All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] The fdt boardsetup command criteria was not unique
@ 2008-06-07 16:29 Jerry Van Baren
  2008-06-09 18:16 ` Scott Wood
  0 siblings, 1 reply; 4+ messages in thread
From: Jerry Van Baren @ 2008-06-07 16:29 UTC (permalink / raw)
  To: u-boot

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 |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c
index ede65ae..8592128 100644
--- a/common/cmd_fdt.c
+++ b/common/cmd_fdt.c
@@ -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 */
-- 
1.5.5.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-10  1:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-07 16:29 [U-Boot-Users] [PATCH] The fdt boardsetup command criteria was not unique Jerry Van Baren
2008-06-09 18:16 ` Scott Wood
2008-06-09 18:52   ` Jerry Van Baren
2008-06-10  1:05   ` [U-Boot-Users] [PATCH] Use strncmp() for the fdt command Jerry Van Baren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.