diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2022-01-31 17:21:39 +0100 |
---|---|---|
committer | Sean Anderson <seanga2@gmail.com> | 2022-02-25 01:41:04 -0500 |
commit | 534859ac6b2fecb631457736e77e9d0df1e57616 (patch) | |
tree | f81eb41051f7e4f3a83b7c5f5a6511beedcd5d11 /cmd | |
parent | afcc26140bc6bff7c23ce02dbba7882c97d2c14a (diff) | |
download | u-boot-534859ac6b2fecb631457736e77e9d0df1e57616.tar.gz u-boot-534859ac6b2fecb631457736e77e9d0df1e57616.tar.bz2 u-boot-534859ac6b2fecb631457736e77e9d0df1e57616.zip |
cmd: clk: update result of do_clk_setfreq
Update the result of do_clk_setfreq and always returns a CMD_RET_ value
(-EINVAL was a possible result).
This patch avoid the CLI output "exit not allowed from main input shell."
Fixes: 7ab418fbe612 ("clk: add support for setting clk rate from cmdline")
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20220131172131.3.Iec2029edb7fc0b29e13bcb86058ad2f614f62779@changeid
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/clk.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -116,7 +116,7 @@ static int do_clk_setfreq(struct cmd_tbl *cmdtp, int flag, int argc, if (!clk) { printf("clock '%s' not found.\n", argv[1]); - return -EINVAL; + return CMD_RET_FAILURE; } freq = clk_set_rate(clk, freq); |