From: Geert Uytterhoeven Date: Tue, 28 Jun 2016 14:10:31 +0000 (+0200) Subject: soc: renesas: rcar-sysc: Fix uninitialized error code in rcar_sysc_pd_init() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1023578ec38ec1bae085917134ba985da755503e;p=linux-beck.git 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: Geert Uytterhoeven Signed-off-by: Simon Horman --- diff --git a/drivers/soc/renesas/rcar-sysc.c b/drivers/soc/renesas/rcar-sysc.c index a43ca24699be..59a8152681a5 100644 --- a/drivers/soc/renesas/rcar-sysc.c +++ b/drivers/soc/renesas/rcar-sysc.c @@ -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);