[PATCH 04/10] clk: imx: scu: detach pd if can't power up
Dong Aisheng
aisheng.dong at nxp.com
Fri Jun 4 02:09:37 PDT 2021
detach pd if can't power up as it may be allocated to a differet
partition.
Signed-off-by: Dong Aisheng <aisheng.dong at nxp.com>
---
drivers/clk/imx/clk-scu.c | 1 +
1 file changed, 1 insertion(+)
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;
}
--
2.25.1
More information about the linux-arm-kernel
mailing list