commit | 46e5f6151e6469e4d4b590ff1578e4ff9b91ccfa | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Mar 25 10:26:09 2021 +1300 |
committer | Simon Glass <sjg@chromium.org> | Tue Apr 06 16:33:19 2021 +1200 |
tree | 5902b71e9074faf4f746bc487efe38c97537e4c1 | |
parent | 29ff16a07bae309186fd70e578d4c2ec011b4835 [diff] |
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>