Skip to content

Commit 74e39f5

Browse files
tititiou36bebarino
authored andcommitted
clk: hisilicon: hi3519: Release the correct number of gates in hi3519_clk_unregister()
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: 224b3b2 ("clk: hisilicon: hi3519: add driver remove path and fix some issues") Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/c3f1877c9a0886fa35c949c8f0ef25547f284f18.1704912510.git.christophe.jaillet@wanadoo.fr Signed-off-by: Stephen Boyd <[email protected]>
1 parent 6613476 commit 74e39f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/hisilicon/clk-hi3519.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static void hi3519_clk_unregister(struct platform_device *pdev)
130130
of_clk_del_provider(pdev->dev.of_node);
131131

132132
hisi_clk_unregister_gate(hi3519_gate_clks,
133-
ARRAY_SIZE(hi3519_mux_clks),
133+
ARRAY_SIZE(hi3519_gate_clks),
134134
crg->clk_data);
135135
hisi_clk_unregister_mux(hi3519_mux_clks,
136136
ARRAY_SIZE(hi3519_mux_clks),

0 commit comments

Comments
 (0)