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>5.4-rM2-2.2.x-imx-squashed
parent
d3ed43b656
commit
16454ec4d7
|
@ -490,6 +490,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue