diff options
author | Ye Li <ye.li@nxp.com> | 2016-03-02 00:56:16 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2016-03-25 16:22:33 +0800 |
commit | 1e430025d3b6cdb4a369028fec4da8b29e592bef (patch) | |
tree | 1641a5cc5a7d4eb2c5f0b7a0042c0cba8f1cc990 /cmd | |
parent | bf1d8faf1dab7c4245ba7b79ceef6279cff45625 (diff) | |
download | u-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |