From: Mathieu Poirier <mathieu.poirier@linaro.org>
To: Andrew Davis <afd@ti.com>
Cc: Bjorn Andersson <andersson@kernel.org>,
linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] remoteproc: da8xx: Use dev_err_probe()
Date: Fri, 6 Mar 2026 10:34:44 -0700 [thread overview]
Message-ID: <aasQNH0hvbTWJTlO@p14s> (raw)
In-Reply-To: <20260302195616.312378-1-afd@ti.com>
On Mon, Mar 02, 2026 at 01:56:14PM -0600, Andrew Davis wrote:
> Simplify the probe() code by using dev_err_probe().
>
> Signed-off-by: Andrew Davis <afd@ti.com>
> ---
> drivers/remoteproc/da8xx_remoteproc.c | 12 ++++--------
> 1 file changed, 4 insertions(+), 8 deletions(-)
>
I have applied this set...
> diff --git a/drivers/remoteproc/da8xx_remoteproc.c b/drivers/remoteproc/da8xx_remoteproc.c
> index e418a2bf5d2ee..41744f3f0252f 100644
> --- a/drivers/remoteproc/da8xx_remoteproc.c
> +++ b/drivers/remoteproc/da8xx_remoteproc.c
> @@ -306,10 +306,8 @@ static int da8xx_rproc_probe(struct platform_device *pdev)
> ret = devm_request_threaded_irq(dev, irq, da8xx_rproc_callback,
> handle_event, 0, "da8xx-remoteproc",
> rproc);
> - if (ret) {
> - dev_err(dev, "devm_request_threaded_irq error: %d\n", ret);
> - return ret;
> - }
> + if (ret)
> + return dev_err_probe(dev, ret, "devm_request_threaded_irq error\n");
>
> /*
> * rproc_add() can end up enabling the DSP's clk with the DSP
> @@ -327,10 +325,8 @@ static int da8xx_rproc_probe(struct platform_device *pdev)
> drproc->irq = irq;
>
> ret = devm_rproc_add(dev, rproc);
> - if (ret) {
> - dev_err(dev, "rproc_add failed: %d\n", ret);
> - return ret;
> - }
> + if (ret)
> + return dev_err_probe(dev, ret, "rproc_add failed\n");
>
> return 0;
> }
> --
> 2.39.2
>
prev parent reply other threads:[~2026-03-06 17:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 19:56 [PATCH 1/3] remoteproc: da8xx: Use dev_err_probe() Andrew Davis
2026-03-02 19:56 ` [PATCH 2/3] remoteproc: da8xx: Remove unused local struct data Andrew Davis
2026-03-02 19:56 ` [PATCH 3/3] remoteproc: da8xx: Reorder resource fetching in probe() Andrew Davis
2026-03-06 17:34 ` Mathieu Poirier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aasQNH0hvbTWJTlO@p14s \
--to=mathieu.poirier@linaro.org \
--cc=afd@ti.com \
--cc=andersson@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox