Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1023578e authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Simon Horman
Browse files

soc: renesas: rcar-sysc: Fix uninitialized error code in rcar_sysc_pd_init()



On success, rcar_sysc_pd_init() returns an uninitialized error code.
Use the return value of of_genpd_add_provider_onecell() to fix this.

This went unnoticed, as early_initcall() doesn't care about the return
value.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 7e49c845
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -398,7 +398,7 @@ static int __init rcar_sysc_pd_init(void)
		domains->domains[area->isr_bit] = &pd->genpd;
	}

	of_genpd_add_provider_onecell(np, &domains->onecell_data);
	error = of_genpd_add_provider_onecell(np, &domains->onecell_data);

out_put:
	of_node_put(np);