]> git.karo-electronics.de Git - karo-tx-linux.git/commit
soc: rockchip: power-domain: Handle errors from of_genpd_add_provider_onecell
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 15 Sep 2016 22:14:39 +0000 (00:14 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 11 Nov 2016 01:14:59 +0000 (02:14 +0100)
commitdabc0259db63338f0e64107cc92b2241f98a3284
tree39362af325784a222afac6386a6553739af19f96
parent79d12b7a7f227ed51dd86b16a7536b391e46f7b0
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 <tomeu.vizoso@collabora.com>
Cc: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/soc/rockchip/pm_domains.c