summaryrefslogtreecommitdiff
path: root/cmd/fdt.c
diff options
context:
space:
mode:
authorTom Warren <twarren@nvidia.com>2020-03-26 15:20:44 -0700
committerSimon Glass <sjg@chromium.org>2020-04-16 08:07:58 -0600
commit0688b758a2c2d3c56dd46ceb6c78ebf29867cc57 (patch)
tree6d3963d2b92e039db7dc846cdf140b6b794691f1 /cmd/fdt.c
parent48e4288aed7d05399a4c0d3ff908319d2793e3f5 (diff)
downloadu-boot-0688b758a2c2d3c56dd46ceb6c78ebf29867cc57.tar.gz
u-boot-0688b758a2c2d3c56dd46ceb6c78ebf29867cc57.tar.bz2
u-boot-0688b758a2c2d3c56dd46ceb6c78ebf29867cc57.zip
fdt: Fix 'system' command
'fdt systemsetup' wasn't working, due to the fact that the 'set' command was being parsed in do_fdt() by only testing for the leading 's' instead of "se", which kept the "sys" test further down from executing. Changed to test for "se" instead, now 'fdt systemsetup' works (to test the ft_system_setup proc w/o having to boot a kernel). Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'cmd/fdt.c')
-rw-r--r--cmd/fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/fdt.c b/cmd/fdt.c
index 25a6ed40d2..36cc726540 100644
--- a/cmd/fdt.c
+++ b/cmd/fdt.c
@@ -286,7 +286,7 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
/*
* Set the value of a property in the working_fdt.
*/
- } else if (argv[1][0] == 's') {
+ } else if (strncmp(argv[1], "se", 2) == 0) {
char *pathp; /* path */
char *prop; /* property */
int nodeoffset; /* node offset from libfdt */