[PATCH linux-next 07/33] clk: mediatek: mt8167: Keep muxes descriptors alive

From: Akari Tsuyukusa

Date: Sat Nov 28 2026 - 20:48:13 EST


The MT8167 topckgen clock provider uses the common probe/remove
helpers. Its remove path calls mtk_clk_unregister_composites(),
which walks the original descriptor array to unregister the muxes.

Drop the __initdata annotation from top_muxes[] so the descriptors
remain available until the clock provider is removed.

Fixes: beb47f194207 ("clk: mediatek: mt8167: Convert to mtk_clk_simple_{probe,remove}()")
Signed-off-by: Akari Tsuyukusa <akkun11.open@xxxxxxxxx>
---
drivers/clk/mediatek/clk-mt8167.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/mediatek/clk-mt8167.c b/drivers/clk/mediatek/clk-mt8167.c
index c88c41aa7fdf..d05523294251 100644
--- a/drivers/clk/mediatek/clk-mt8167.c
+++ b/drivers/clk/mediatek/clk-mt8167.c
@@ -519,7 +519,7 @@ static const char * const nfiecc_parents[] = {
"csw_nfiecc_sel"
};

-static struct mtk_composite top_muxes[] __initdata = {
+static struct mtk_composite top_muxes[] = {
/* CLK_MUX_SEL0 */
MUX(CLK_TOP_UART0_SEL, "uart0_sel", uart0_parents,
0x000, 0, 1),
--
2.56.0