summaryrefslogtreecommitdiff
path: root/drivers/clk/imx
diff options
context:
space:
mode:
authorDong Aisheng <aisheng.dong@nxp.com>2021-06-04 17:09:37 +0800
committerAbel Vesa <abel.vesa@nxp.com>2021-06-14 12:34:26 +0300
commit6618b5aa655a793a5ad3b988cb4e2ff80777f06e (patch)
tree6ec6a1c9e402984e1f8ee09a7fa78ffa3150d8e7 /drivers/clk/imx
parentaecf425fa948e0ea9d0f7d86317b2c509108daae (diff)
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>
Diffstat (limited to 'drivers/clk/imx')
-rw-r--r--drivers/clk/imx/clk-scu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-scu.c b/drivers/clk/imx/clk-scu.c
index d87a1a1b297e..95fcac7f73b6 100644
--- a/drivers/clk/imx/clk-scu.c
+++ b/drivers/clk/imx/clk-scu.c
@@ -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;
}