linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pmdomain: renesas: rcar-sysc: Make rcar_sysc_onecell_np __initdata
@ 2025-08-13 13:04 Geert Uytterhoeven
  2025-08-19 12:27 ` Ulf Hansson
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2025-08-13 13:04 UTC (permalink / raw)
  To: Ulf Hansson, Magnus Damm; +Cc: linux-pm, linux-renesas-soc, Geert Uytterhoeven

rcar_sysc_onecell_np() is only used by functions marked __init, so it
can be freed when init memory is freed.

Fixes: c5ae5a0c61120d0c ("pmdomain: renesas: rcar-sysc: Add genpd OF provider at postcore_initcall")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/pmdomain/renesas/rcar-sysc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pmdomain/renesas/rcar-sysc.c b/drivers/pmdomain/renesas/rcar-sysc.c
index 4b310c1d35fa6bb5..2d4161170c63d07b 100644
--- a/drivers/pmdomain/renesas/rcar-sysc.c
+++ b/drivers/pmdomain/renesas/rcar-sysc.c
@@ -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)
 {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] pmdomain: renesas: rcar-sysc: Make rcar_sysc_onecell_np __initdata
  2025-08-13 13:04 [PATCH] pmdomain: renesas: rcar-sysc: Make rcar_sysc_onecell_np __initdata Geert Uytterhoeven
@ 2025-08-19 12:27 ` Ulf Hansson
  0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2025-08-19 12:27 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Magnus Damm, linux-pm, linux-renesas-soc

On Wed, 13 Aug 2025 at 15:04, Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
>
> rcar_sysc_onecell_np() is only used by functions marked __init, so it
> can be freed when init memory is freed.
>
> Fixes: c5ae5a0c61120d0c ("pmdomain: renesas: rcar-sysc: Add genpd OF provider at postcore_initcall")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Applied for fixes, thanks!

Kind regards
Uffe


> ---
>  drivers/pmdomain/renesas/rcar-sysc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pmdomain/renesas/rcar-sysc.c b/drivers/pmdomain/renesas/rcar-sysc.c
> index 4b310c1d35fa6bb5..2d4161170c63d07b 100644
> --- a/drivers/pmdomain/renesas/rcar-sysc.c
> +++ b/drivers/pmdomain/renesas/rcar-sysc.c
> @@ -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)
>  {
> --
> 2.43.0
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-08-19 12:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13 13:04 [PATCH] pmdomain: renesas: rcar-sysc: Make rcar_sysc_onecell_np __initdata Geert Uytterhoeven
2025-08-19 12:27 ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).