From: Lorenzo Bianconi <lorenzo@kernel.org>
To: Pan Chuang <panchuang@vivo.com>
Cc: Linus Walleij <linusw@kernel.org>,
"moderated list:PIN CONTROLLER - AIROHA"
<linux-mediatek@lists.infradead.org>,
"open list:PIN CONTROL SUBSYSTEM" <linux-gpio@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/4] pinctrl: airoha: Remove redundant dev_err()
Date: Mon, 20 Jul 2026 13:12:50 +0200 [thread overview]
Message-ID: <al4CsgKsPOjLbMOG@lore-desk> (raw)
In-Reply-To: <20260717105847.131359-2-panchuang@vivo.com>
[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]
> Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in
> devm_request_*_irq()"), devm_request_irq() automatically logs
> detailed error messages on failure. Remove the now-redundant
> driver-specific dev_err() calls.
>
> Signed-off-by: Pan Chuang <panchuang@vivo.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
> ---
> drivers/pinctrl/airoha/pinctrl-airoha.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/pinctrl/airoha/pinctrl-airoha.c b/drivers/pinctrl/airoha/pinctrl-airoha.c
> index 04b4424c688b..abfb018f207e 100644
> --- a/drivers/pinctrl/airoha/pinctrl-airoha.c
> +++ b/drivers/pinctrl/airoha/pinctrl-airoha.c
> @@ -2519,10 +2519,8 @@ static int airoha_pinctrl_add_gpiochip(struct airoha_pinctrl *pinctrl,
>
> err = devm_request_irq(dev, irq, airoha_irq_handler, IRQF_SHARED,
> dev_name(dev), pinctrl);
> - if (err) {
> - dev_err(dev, "error requesting irq %d: %d\n", irq, err);
> + if (err)
> return err;
> - }
>
> return devm_gpiochip_add_data(dev, gc, pinctrl);
> }
> --
> 2.34.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-07-20 11:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-17 10:58 [PATCH 0/4] pinctrl: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-17 10:58 ` [PATCH 1/4] pinctrl: airoha: Remove redundant dev_err() Pan Chuang
2026-07-20 11:12 ` Lorenzo Bianconi [this message]
2026-07-17 10:58 ` [PATCH 2/4] pinctrl: bcm: " Pan Chuang
2026-07-17 10:58 ` [PATCH 3/4] pinctrl: intel: Remove redundant dev_err_probe() Pan Chuang
2026-07-17 16:58 ` Andy Shevchenko
2026-07-17 10:58 ` [PATCH 4/4] pinctrl: Remove redundant dev_err()/dev_err_probe() Pan Chuang
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=al4CsgKsPOjLbMOG@lore-desk \
--to=lorenzo@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=panchuang@vivo.com \
/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