mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
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á <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20240710-dev-clk-misc-v1-2-cd9d960099a2@analog.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
66b065239a
commit
ec562c9a9e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user