Skip to content

Commit 6618b5a

Browse files
Dong Aishengabelvesa
authored andcommitted
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 <[email protected]> Reviewed-by: Abel Vesa <[email protected]> Signed-off-by: Abel Vesa <[email protected]>
1 parent aecf425 commit 6618b5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/imx/clk-scu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ static int imx_clk_scu_probe(struct platform_device *pdev)
512512

513513
ret = pm_runtime_get_sync(dev);
514514
if (ret) {
515+
pm_genpd_remove_device(dev);
515516
pm_runtime_disable(dev);
516517
return ret;
517518
}

0 commit comments

Comments
 (0)