Commit ec562c9a authored by Nuno Sá's avatar Nuno Sá Committed by Stephen Boyd
Browse files

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: default avatarNuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240710-dev-clk-misc-v1-2-cd9d960099a2@analog.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 66b06523
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)