OSDN Git Service

clk: imx: scu: detach pd if can't power up
authorDong Aisheng <aisheng.dong@nxp.com>
Fri, 4 Jun 2021 09:09:37 +0000 (17:09 +0800)
committerAbel Vesa <abel.vesa@nxp.com>
Mon, 14 Jun 2021 09:34:26 +0000 (12:34 +0300)
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>
drivers/clk/imx/clk-scu.c

index d87a1a1..95fcac7 100644 (file)
@@ -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;
        }