public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: hisilicon: hi3519: Release the correct number of gates in hi3519_clk_unregister()
@ 2024-01-10 18:58 Christophe JAILLET
  2024-02-22  4:24 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2024-01-10 18:58 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Jiancheng Xue
  Cc: linux-kernel, kernel-janitors, Christophe JAILLET, Stephen Boyd,
	linux-clk

The gates are stored in 'hi3519_gate_clks', not 'hi3519_mux_clks'.
This is also in line with how hisi_clk_register_gate() is called in the
probe.

Fixes: 224b3b262c52 ("clk: hisilicon: hi3519: add driver remove path and fix some issues")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
 drivers/clk/hisilicon/clk-hi3519.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/hisilicon/clk-hi3519.c b/drivers/clk/hisilicon/clk-hi3519.c
index b871872d9960..141b727ff60d 100644
--- a/drivers/clk/hisilicon/clk-hi3519.c
+++ b/drivers/clk/hisilicon/clk-hi3519.c
@@ -130,7 +130,7 @@ static void hi3519_clk_unregister(struct platform_device *pdev)
 	of_clk_del_provider(pdev->dev.of_node);
 
 	hisi_clk_unregister_gate(hi3519_gate_clks,
-				ARRAY_SIZE(hi3519_mux_clks),
+				ARRAY_SIZE(hi3519_gate_clks),
 				crg->clk_data);
 	hisi_clk_unregister_mux(hi3519_mux_clks,
 				ARRAY_SIZE(hi3519_mux_clks),
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] clk: hisilicon: hi3519: Release the correct number of gates in hi3519_clk_unregister()
  2024-01-10 18:58 [PATCH] clk: hisilicon: hi3519: Release the correct number of gates in hi3519_clk_unregister() Christophe JAILLET
@ 2024-02-22  4:24 ` Stephen Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2024-02-22  4:24 UTC (permalink / raw)
  To: Christophe JAILLET, Jiancheng Xue, Michael Turquette
  Cc: linux-kernel, kernel-janitors, Christophe JAILLET, Stephen Boyd,
	linux-clk

Quoting Christophe JAILLET (2024-01-10 10:58:21)
> The gates are stored in 'hi3519_gate_clks', not 'hi3519_mux_clks'.
> This is also in line with how hisi_clk_register_gate() is called in the
> probe.
> 
> Fixes: 224b3b262c52 ("clk: hisilicon: hi3519: add driver remove path and fix some issues")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---

Applied to clk-next

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-22  4:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-10 18:58 [PATCH] clk: hisilicon: hi3519: Release the correct number of gates in hi3519_clk_unregister() Christophe JAILLET
2024-02-22  4:24 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox