diff mbox series

pmdomain: imx: imx93-blk-ctrl: disable runtime in error path

Message ID 20240823101425.3921920-1-peng.fan@oss.nxp.com
State New
Headers show
Series pmdomain: imx: imx93-blk-ctrl: disable runtime in error path | expand

Commit Message

Peng Fan (OSS) Aug. 23, 2024, 10:14 a.m. UTC
From: Peng Fan <peng.fan@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@nxp.com>
---
 drivers/pmdomain/imx/imx93-blk-ctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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) {