clk: hisilicon: hi3519: Release the correct number of gates in hi3519_clk_unregister()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 10 Jan 2024 18:58:21 +0000 (19:58 +0100)
committerStephen Boyd <sboyd@kernel.org>
Thu, 22 Feb 2024 04:23:48 +0000 (20:23 -0800)
commit74e39f526d95c0c119ada1874871ee328c59fbee
treea58c957f2cb7f62367319ca413a3b2cddcef6c53
parent6613476e225e090cc9aad49be7fa504e290dd33d
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: 224b3b262c52 ("clk: hisilicon: hi3519: add driver remove path and fix some issues")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/c3f1877c9a0886fa35c949c8f0ef25547f284f18.1704912510.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/hisilicon/clk-hi3519.c