diff options
author | Ye Li <ye.li@nxp.com> | 2016-03-02 00:56:16 +0800 |
---|---|---|
committer | fang hui <hui.fang@nxp.com> | 2016-11-09 08:25:50 +0800 |
commit | c70bfc95127fddaf287e7e4acfd7e46ef0167cb0 (patch) | |
tree | 24e6d812d1f75df7d2a4f95c61000d15614e381d /common/cmd_fdt.c | |
parent | d1830f03a9b1bee22cb1da662c8c8a3d1e7ad4c1 (diff) | |
download | u-boot-imx-c70bfc95127fddaf287e7e4acfd7e46ef0167cb0.zip u-boot-imx-c70bfc95127fddaf287e7e4acfd7e46ef0167cb0.tar.gz u-boot-imx-c70bfc95127fddaf287e7e4acfd7e46ef0167cb0.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 'common/cmd_fdt.c')
-rw-r--r-- | common/cmd_fdt.c | 2 |
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 */ |