pmdomain: imx93-blk-ctrl: Use pm_runtime_resume_and_get()

Replace the open-coded pm_runtime_get_sync() + pm_runtime_put_noidle()
error handling pattern with pm_runtime_resume_and_get(), which already
does this internally.

No functional change.

Found by manual code inspection.

Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
This commit is contained in:
bui duc phuc 2026-09-21 10:37:08 +07:00 committed by Ulf Hansson
parent 3d4f1d7bbd
commit 38f9175fc8

View File

@ -152,9 +152,8 @@ static int imx93_blk_ctrl_power_on(struct generic_pm_domain *genpd)
return ret;
}
ret = pm_runtime_get_sync(bc->dev);
ret = pm_runtime_resume_and_get(bc->dev);
if (ret < 0) {
pm_runtime_put_noidle(bc->dev);
dev_err(bc->dev, "failed to power up domain\n");
goto disable_clk;
}