Message ID | 20240815005520.1192374-2-sboyd@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | clk: Unit test clk unregistration paths | expand |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 285ed1ad8a37..f5415aa70f81 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -4606,6 +4606,8 @@ void clk_unregister(struct clk *clk) if (clk->core->protect_count) pr_warn("%s: unregistering protected clock: %s\n", __func__, clk->core->name); + + clk_core_unlink_consumer(clk); clk_prepare_unlock(); kref_put(&clk->core->ref, __clk_release);