summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-03-02 00:56:16 +0800
committerYe Li <ye.li@nxp.com>2016-03-25 16:22:33 +0800
commit1e430025d3b6cdb4a369028fec4da8b29e592bef (patch)
tree1641a5cc5a7d4eb2c5f0b7a0042c0cba8f1cc990 /cmd
parentbf1d8faf1dab7c4245ba7b79ceef6279cff45625 (diff)
downloadu-boot-imx-1e430025d3b6cdb4a369028fec4da8b29e592bef.zip
u-boot-imx-1e430025d3b6cdb4a369028fec4da8b29e592bef.tar.gz
u-boot-imx-1e430025d3b6cdb4a369028fec4da8b29e592bef.tar.bz2
MLK-12483-1 common: Fix fdt command systemsetup issue
The fdt command "fdt systemsetup" can't work because the do_fdt check the start char 's' for command "fdt set". So the fdt systemsetup will also go into the "fdt set" in fault. Fix this problem by checking the whole word "set" for "fdt set" command. Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/fdt.c b/cmd/fdt.c
index 4c18962..ca688d0 100644
--- a/cmd/fdt.c
+++ b/cmd/fdt.c
@@ -244,7 +244,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], "set", 3) == 0) {
char *pathp; /* path */
char *prop; /* property */
int nodeoffset; /* node offset from libfdt */