aboutsummaryrefslogtreecommitdiff
path: root/include/clk-uclass.h
diff options
context:
space:
mode:
authorSean Anderson2022-01-15 17:24:58 -0500
committerSean Anderson2022-03-30 13:02:55 -0400
commit276d446757e462c210768eb0bbd48450ae254f51 (patch)
treea89503f0d871402173c7783cee3e59c8dac3f886 /include/clk-uclass.h
parentd2e5250be49fce4653689c41a5dc7e2d7e7ecf33 (diff)
clk: Make rfree return void
When freeing a clock there is not much we can do if there is an error, and most callers do not actually check the return value. Even e.g. checking to make sure that clk->id is valid should have been done in request() in the first place (unless someone is messing with the driver behind our back). Just return void and don't bother returning an error. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Link: https://lore.kernel.org/r/20220115222504.617013-2-seanga2@gmail.com
Diffstat (limited to 'include/clk-uclass.h')
-rw-r--r--include/clk-uclass.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/clk-uclass.h b/include/clk-uclass.h
index e44f1caf516..65ebff9ed27 100644
--- a/include/clk-uclass.h
+++ b/include/clk-uclass.h
@@ -32,7 +32,7 @@ struct clk_ops {
int (*of_xlate)(struct clk *clock,
struct ofnode_phandle_args *args);
int (*request)(struct clk *clock);
- int (*rfree)(struct clk *clock);
+ void (*rfree)(struct clk *clock);
ulong (*round_rate)(struct clk *clk, ulong rate);
ulong (*get_rate)(struct clk *clk);
ulong (*set_rate)(struct clk *clk, ulong rate);
@@ -81,11 +81,9 @@ int request(struct clk *clock);
* rfree() - Free a previously requested clock.
* @clock: The clock to free.
*
- * This is the implementation of the client clk_free() API.
- *
- * Return: 0 if OK, or a negative error code.
+ * Free any resources allocated in request().
*/
-int rfree(struct clk *clock);
+void rfree(struct clk *clock);
/**
* round_rate() - Adjust a rate to the exact rate a clock can provide.