mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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: 7ab418fbe6
("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
This commit is contained in:
parent
afcc26140b
commit
534859ac6b
1 changed files with 1 additions and 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);
|
||||
|
|
Loading…
Reference in a new issue