soc: rockchip: power-domain: Handle errors from

A patch from »soc: rockchip: fix probe error path in power-domain driver« in state Mainline for linux-kernel

From: Tomeu Vizoso <tomeu.vizoso@...> Date: Thu, 15 Sep 2016 12:43:41 +0200

Commit-Message

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 <tomeu.vizoso@...> Cc: Caesar Wang <wxt@...> Signed-off-by: Heiko Stuebner <heiko@...>

Patch-Comment

unchanged from Tomeu's single-patch drivers/soc/rockchip/pm_domains.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)

Statistics

  • 5 lines added
  • 1 lines removed

Changes

---------------------- drivers/soc/rockchip/pm_domains.c -----------------------
index 241df213..2fd0c89 100644
@@ -636,7 +636,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;
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...