From: Nuno Sá Date: Wed, 10 Jul 2024 08:40:36 +0000 (+0200) Subject: clk: use clk_core_unlink_consumer() helper X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ec562c9a9ec27c4e31bdcaa84c67fa49f59454a6;p=users%2Fjedix%2Flinux-maple.git clk: use clk_core_unlink_consumer() helper There is an helper to remove a consumer from the clk provider list. Hence, let's use it when releasing a consumer. Signed-off-by: Nuno Sá Link: https://lore.kernel.org/r/20240710-dev-clk-misc-v1-2-cd9d960099a2@analog.com Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 7264cf6165ce..d02451f951cf 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -4762,7 +4762,7 @@ void __clk_put(struct clk *clk) clk->exclusive_count = 0; } - hlist_del(&clk->clks_node); + clk_core_unlink_consumer(clk); /* If we had any boundaries on that clock, let's drop them. */ if (clk->min_rate > 0 || clk->max_rate < ULONG_MAX)