mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-12 17:49:16 +00:00
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: 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>
This commit is contained in:
parent
46c9585ed4
commit
0766d65e6a
1 changed files with 1 additions and 3 deletions
|
@ -441,9 +441,7 @@ static int meson_ee_pwrc_probe(struct platform_device *pdev)
|
||||||
pwrc->xlate.domains[i] = &dom->base;
|
pwrc->xlate.domains[i] = &dom->base;
|
||||||
}
|
}
|
||||||
|
|
||||||
of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate);
|
return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void meson_ee_pwrc_shutdown(struct platform_device *pdev)
|
static void meson_ee_pwrc_shutdown(struct platform_device *pdev)
|
||||||
|
|
Loading…
Add table
Reference in a new issue