summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-03-02 00:56:16 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2016-03-04 15:53:41 +0800
commit05f477fa301b1c8e1b48d9411c5836c314fe59ac (patch)
treeed6e569fc425fadbfb90951ca51ea3b28b087a85
parentf2d295e18b25d02215b1bb2a9e76340594db7698 (diff)
downloadu-boot-imx-05f477fa301b1c8e1b48d9411c5836c314fe59ac.zip
u-boot-imx-05f477fa301b1c8e1b48d9411c5836c314fe59ac.tar.gz
u-boot-imx-05f477fa301b1c8e1b48d9411c5836c314fe59ac.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> (cherry picked from commit 771dab97f93e1ab07a5f2f29f1622528b9477969)
-rw-r--r--common/cmd_fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c
index 48b3e70..e18cf9c 100644
--- a/common/cmd_fdt.c
+++ b/common/cmd_fdt.c
@@ -243,7 +243,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 */