]> git.baikalelectronics.ru Git - uboot.git/commit
clk: Make clk_free return void
authorSean Anderson <seanga2@gmail.com>
Sat, 15 Jan 2022 22:25:04 +0000 (17:25 -0500)
committerSean Anderson <seanga2@gmail.com>
Wed, 30 Mar 2022 17:02:55 +0000 (13:02 -0400)
commitdf253fba91aad4af2c927cf444bff1e7ba2fec1d
tree1f6eb51df9cbb9da87a208b5f1c46a1d2d4797af
parentfaa9e01d236863bdd1aaba8139a4cbe0bf89fb22
clk: Make clk_free return void

Most callers of this function do not check the return value, and it is
unclear what action they should take if it fails. If a function is freeing
multiple clocks, it should not stop just because the first one failed.
Since the callbacks can no longer fail, just convert the return type to
void.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20220115222504.617013-8-seanga2@gmail.com
drivers/clk/clk-uclass.c
drivers/clk/clk_sandbox_test.c
include/clk.h