]> git.baikalelectronics.ru Git - uboot.git/commit
clk: Return -ENOSYS when system call is not available
authorSimon Glass <sjg@chromium.org>
Wed, 24 Mar 2021 21:26:09 +0000 (10:26 +1300)
committerSimon Glass <sjg@chromium.org>
Tue, 6 Apr 2021 04:33:19 +0000 (16:33 +1200)
commitc372eade5ca56afd69a9fc6a73013031bfc18a31
tree5902b71e9074faf4f746bc487efe38c97537e4c1
parent2c0d3d4d1841a1732fd6ce447cffb12f5ea2c2ad
clk: Return -ENOSYS when system call is not available

Update clk_composite_set_parent() to use -ENOSYS, which is the correct
error code for U-Boot. Also rearrange the code so that the error condition
is clearly indicated and the function runs to the end in the normal case,
since this is the common style in U-Boot.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
drivers/clk/clk-composite.c