Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: amlogic: meson-ee-pwrc: propagate PD provider registration errors

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>

authored by

Martin Blumenstingl and committed by
Kevin Hilman
0766d65e 46c9585e

+1 -3
+1 -3
drivers/soc/amlogic/meson-ee-pwrc.c
··· 441 441 pwrc->xlate.domains[i] = &dom->base; 442 442 } 443 443 444 - of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate); 445 - 446 - return 0; 444 + return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate); 447 445 } 448 446 449 447 static void meson_ee_pwrc_shutdown(struct platform_device *pdev)