mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
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:
parent
aecf425fa9
commit
6618b5aa65
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user