]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pmdomain: renesas: rcar-sysc: Make rcar_sysc_onecell_np __initdata
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 13 Aug 2025 13:04:24 +0000 (15:04 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 19 Aug 2025 10:11:42 +0000 (12:11 +0200)
rcar_sysc_onecell_np() is only used by functions marked __init, so it
can be freed when init memory is freed.

Fixes: c5ae5a0c6112 ("pmdomain: renesas: rcar-sysc: Add genpd OF provider at postcore_initcall")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/e20a848ff952924f8f58c335f9a0242cb2565921.1755090234.git.geert+renesas@glider.be
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/renesas/rcar-sysc.c

index 4b310c1d35fa6bb5943c499c474a9c548843160d..2d4161170c63d07b28fede7b530c06ab42d7e2a8 100644 (file)
@@ -342,7 +342,7 @@ struct rcar_pm_domains {
 };
 
 static struct genpd_onecell_data *rcar_sysc_onecell_data;
-static struct device_node *rcar_sysc_onecell_np;
+static struct device_node *rcar_sysc_onecell_np __initdata = NULL;
 
 static int __init rcar_sysc_pd_init(void)
 {