projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66b0652
)
clk: use clk_core_unlink_consumer() helper
author
Nuno Sá
<nuno.sa@analog.com>
Wed, 10 Jul 2024 08:40:36 +0000
(10:40 +0200)
committer
Stephen Boyd
<sboyd@kernel.org>
Tue, 6 Aug 2024 21:49:25 +0000
(14:49 -0700)
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>
drivers/clk/clk.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/clk.c
b/drivers/clk/clk.c
index 7264cf6165ce141b846ce1a0bd82aa3e1de2392e..d02451f951cf057d068f980d985c95deb861a2d9 100644
(file)
--- 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)