[PATCH linux-next 06/33] clk: mediatek: mt2701: Keep CPU mux descriptors alive
From: Akari Tsuyukusa
Date: Sat Nov 28 2026 - 20:48:10 EST
The infracfg clock descriptor retains a pointer to cpu_muxes
for clock registration and unregistration.
Do not mark the array as __initconst, as it must remain
available after init memory has been freed.
Fixes: ecc3a07f599f ("clk: mediatek: mt2701: Switch to common probe/remove helpers")
Signed-off-by: Akari Tsuyukusa <akkun11.open@xxxxxxxxx>
---
drivers/clk/mediatek/clk-mt2701.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/mediatek/clk-mt2701.c b/drivers/clk/mediatek/clk-mt2701.c
index 5ea0c4acaf1b..73df452e1cfb 100644
--- a/drivers/clk/mediatek/clk-mt2701.c
+++ b/drivers/clk/mediatek/clk-mt2701.c
@@ -479,7 +479,7 @@ static const char * const cpu_parents[] = {
"mmpll"
};
-static const struct mtk_composite cpu_muxes[] __initconst = {
+static const struct mtk_composite cpu_muxes[] = {
MUX(CLK_INFRA_CPUSEL, "infra_cpu_sel", cpu_parents, 0x0000, 2, 2),
};
--
2.56.0