[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPDyKFrY7ohfWw+boNEph9+NfTW7uEYKbuEnbk53Ne5XJPXuiw@mail.gmail.com>
Date: Fri, 13 Sep 2024 14:01:46 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Dario Binacchi <dario.binacchi@...rulasolutions.com>
Cc: linux-kernel@...r.kernel.org, linux-amarula@...rulasolutions.com,
Arnd Bergmann <arnd@...db.de>, Fabio Estevam <festevam@...il.com>,
Linus Walleij <linus.walleij@...aro.org>, Peng Fan <peng.fan@....com>,
Pengutronix Kernel Team <kernel@...gutronix.de>, Sascha Hauer <s.hauer@...gutronix.de>,
Shawn Guo <shawnguo@...nel.org>, Uwe Kleine-König <u.kleine-koenig@...gutronix.de>,
imx@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org,
linux-pm@...r.kernel.org
Subject: Re: [PATCH v2 1/3] pmdomain: imx93-pd: replace dev_err() with dev_err_probe()
On Sun, 25 Aug 2024 at 16:34, Dario Binacchi
<dario.binacchi@...rulasolutions.com> wrote:
>
> 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 <dario.binacchi@...rulasolutions.com>
Applied for next, thanks!
Kind regards
Uffe
>
> ---
>
> Changes in v2:
> - Drop the extra { } to be even more compact.
>
> drivers/pmdomain/imx/imx93-pd.c | 9 ++++-----
> 1 file 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);
> --
> 2.43.0
>
Powered by blists - more mailing lists