Skip to content

Commit 06cee3c

Browse files
passgatstorulf
authored andcommitted
pmdomain: imx93-pd: replace dev_err() with dev_err_probe()
This way, the code becomes more compact, and dev_err_probe() is used in every error path of the probe() function. Signed-off-by: Dario Binacchi <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent f318522 commit 06cee3c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/pmdomain/imx/imx93-pd.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,10 @@ static int imx93_pd_probe(struct platform_device *pdev)
125125
/* Just to sync the status of hardware */
126126
if (!domain->init_off) {
127127
ret = clk_bulk_prepare_enable(domain->num_clks, domain->clks);
128-
if (ret) {
129-
dev_err(domain->dev, "failed to enable clocks for domain: %s\n",
130-
domain->genpd.name);
131-
return ret;
132-
}
128+
if (ret)
129+
return dev_err_probe(domain->dev, ret,
130+
"failed to enable clocks for domain: %s\n",
131+
domain->genpd.name);
133132
}
134133

135134
ret = pm_genpd_init(&domain->genpd, NULL, domain->init_off);

0 commit comments

Comments
 (0)