clk: imx: scu: detach pd if can't power up

detach pd if can't power up as it may be allocated to a differet
partition.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
This commit is contained in:
Dong Aisheng 2021-06-04 17:09:37 +08:00 committed by Abel Vesa
parent aecf425fa9
commit 6618b5aa65

View File

@ -512,6 +512,7 @@ static int imx_clk_scu_probe(struct platform_device *pdev)
ret = pm_runtime_get_sync(dev);
if (ret) {
pm_genpd_remove_device(dev);
pm_runtime_disable(dev);
return ret;
}