soc: amlogic: meson-ee-pwrc: propagate PD provider registration errors
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 30 Nov 2019 14:58:20 +0000 (15:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 07:22:27 +0000 (08:22 +0100)
commit72840676ce05e19b08bae197f7afa576d50ee3a2
tree25d740e58eb5513c459b9c5496d1080301ca1378
parentff49e8fbbddb232d1b21544aa25a10975edf5b82
soc: amlogic: meson-ee-pwrc: propagate PD provider registration errors

commit 0766d65e6afaea8b80205a468207de9f18cd7ec8 upstream.

of_genpd_add_provider_onecell() can return an error. Propagate the error
so the driver registration fails when of_genpd_add_provider_onecell()
did not work.

Fixes: eef3c2ba0a42a6 ("soc: amlogic: Add support for Everything-Else power domains controller")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soc/amlogic/meson-ee-pwrc.c