summaryrefslogtreecommitdiffstats
path: root/drivers/soc/amlogic/meson-ee-pwrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/soc/amlogic/meson-ee-pwrc.c')
-rw-r--r--drivers/soc/amlogic/meson-ee-pwrc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/soc/amlogic/meson-ee-pwrc.c b/drivers/soc/amlogic/meson-ee-pwrc.c
index 5823f5b67d16..df734a45da56 100644
--- a/drivers/soc/amlogic/meson-ee-pwrc.c
+++ b/drivers/soc/amlogic/meson-ee-pwrc.c
@@ -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)