[PATCH linux-next 06/33] clk: mediatek: mt2701: Keep CPU mux descriptors alive

Akari Tsuyukusa akkun11.open at gmail.com
Sat Nov 28 17:47:18 PST 2026


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 at gmail.com>
---
 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




More information about the linux-arm-kernel mailing list