mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
soc: rockchip: power-domain: Handle errors from of_genpd_add_provider_onecell
It was a bit surprising that the device was reported to have probed just fine, but the provider hadn't been registered. So handle any errors when registering the provider and fail the probe accordingly. Signed-off-by: Tomeu Vizoso <[email protected]> Cc: Caesar Wang <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]>
This commit is contained in:
parent
79d12b7a7f
commit
dabc0259db
1 changed files with 5 additions and 1 deletions
|
|
@ -672,7 +672,11 @@ static int rockchip_pm_domain_probe(struct platform_device *pdev)
|
|||
goto err_out;
|
||||
}
|
||||
|
||||
of_genpd_add_provider_onecell(np, &pmu->genpd_data);
|
||||
error = of_genpd_add_provider_onecell(np, &pmu->genpd_data);
|
||||
if (error) {
|
||||
dev_err(dev, "failed to add provider: %d\n", error);
|
||||
goto err_out;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue