summaryrefslogtreecommitdiff
path: root/drivers/pmdomain/imx/imx93-pd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pmdomain/imx/imx93-pd.c')
-rw-r--r--drivers/pmdomain/imx/imx93-pd.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/pmdomain/imx/imx93-pd.c b/drivers/pmdomain/imx/imx93-pd.c
index d750a7dc58d2..44daecbe5cc3 100644
--- a/drivers/pmdomain/imx/imx93-pd.c
+++ b/drivers/pmdomain/imx/imx93-pd.c
@@ -125,11 +125,10 @@ static int imx93_pd_probe(struct platform_device *pdev)
/* Just to sync the status of hardware */
if (!domain->init_off) {
ret = clk_bulk_prepare_enable(domain->num_clks, domain->clks);
- if (ret) {
- dev_err(domain->dev, "failed to enable clocks for domain: %s\n",
- domain->genpd.name);
- return ret;
- }
+ if (ret)
+ return dev_err_probe(domain->dev, ret,
+ "failed to enable clocks for domain: %s\n",
+ domain->genpd.name);
}
ret = pm_genpd_init(&domain->genpd, NULL, domain->init_off);