]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: clk: update result of do_clk_setfreq
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 31 Jan 2022 16:21:39 +0000 (17:21 +0100)
committerSean Anderson <seanga2@gmail.com>
Fri, 25 Feb 2022 06:41:04 +0000 (01:41 -0500)
commitd558e865b9810d77f6c7cfb5807949f552a875a5
treef81eb41051f7e4f3a83b7c5f5a6511beedcd5d11
parent20b2687b26ea79522e26fda616b8abb9d46898e9
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: dfefb2c97826 ("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
cmd/clk.c