soc: renesas: rcar-sysc: Fix uninitialized error code in rcar_sysc_pd_init()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 28 Jun 2016 14:10:31 +0000 (16:10 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 29 Jun 2016 12:36:37 +0000 (14:36 +0200)
commit1023578ec38ec1bae085917134ba985da755503e
tree472bc4a8e54aa7d91398ade3f921420f54f9b218
parent7e49c845983e9aae86c70464786aa2ee191929a6
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 <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/soc/renesas/rcar-sysc.c