[PATCH] pmdomain: imx: imx93-blk-ctrl: disable runtime in error path
Peng Fan (OSS)
peng.fan at oss.nxp.com
Fri Aug 23 03:14:25 PDT 2024
From: Peng Fan <peng.fan at nxp.com>
Use devm_pm_runtime_enable to disable runtime in case
of_genpd_add_provider_onecell fails.
Fixes: e9aa77d413c9 ("soc: imx: add i.MX93 media blk ctrl driver")
Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
drivers/pmdomain/imx/imx93-blk-ctrl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pmdomain/imx/imx93-blk-ctrl.c b/drivers/pmdomain/imx/imx93-blk-ctrl.c
index 34ac7b722b90..9c2b1af1367e 100644
--- a/drivers/pmdomain/imx/imx93-blk-ctrl.c
+++ b/drivers/pmdomain/imx/imx93-blk-ctrl.c
@@ -287,7 +287,7 @@ static int imx93_blk_ctrl_probe(struct platform_device *pdev)
bc->onecell_data.domains[i] = &domain->genpd;
}
- pm_runtime_enable(dev);
+ devm_pm_runtime_enable(dev);
ret = of_genpd_add_provider_onecell(dev->of_node, &bc->onecell_data);
if (ret) {
--
2.37.1
More information about the linux-arm-kernel
mailing list