mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
soc: amlogic: meson-ee-pwrc: propagate PD provider registration errors
commit0766d65e6aupstream. 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:eef3c2ba0a("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ff49e8fbbd
commit
72840676ce
@@ -441,9 +441,7 @@ static int meson_ee_pwrc_probe(struct platform_device *pdev)
|
||||
pwrc->xlate.domains[i] = &dom->base;
|
||||
}
|
||||
|
||||
of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate);
|
||||
|
||||
return 0;
|
||||
return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate);
|
||||
}
|
||||
|
||||
static void meson_ee_pwrc_shutdown(struct platform_device *pdev)
|
||||
|
||||
Reference in New Issue
Block a user