From: Pan Chuang <panchuang@vivo.com>
To: Sebastian Reichel <sre@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
linux-pm@vger.kernel.org (open list:POWER SUPPLY CLASS/SUBSYSTEM
and DRIVERS),
linux-kernel@vger.kernel.org (open list:ARM/Mediatek SoC support),
linux-arm-kernel@lists.infradead.org (moderated
list:ARM/Mediatek SoC support),
linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek
SoC support)
Cc: Pan Chuang <panchuang@vivo.com>
Subject: [PATCH 26/43] power: supply: mt6360_charger: Remove redundant dev_err()/dev_err_probe()
Date: Thu, 9 Jul 2026 11:34:05 +0800 [thread overview]
Message-ID: <20260709033428.362970-27-panchuang@vivo.com> (raw)
In-Reply-To: <20260709033428.362970-1-panchuang@vivo.com>
The devm_request_threaded_irq() and devm_request_irq() now automatically
log detailed error messages on failure. This eliminates the need for
driver-specific dev_err() and dev_err_probe() calls that previously
printed generic messages.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
---
drivers/power/supply/mt6360_charger.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/power/supply/mt6360_charger.c b/drivers/power/supply/mt6360_charger.c
index d3b0731f6562..b4d462343151 100644
--- a/drivers/power/supply/mt6360_charger.c
+++ b/drivers/power/supply/mt6360_charger.c
@@ -721,8 +721,7 @@ static int mt6360_chg_irq_register(struct platform_device *pdev)
irq_descs[i].name,
platform_get_drvdata(pdev));
if (ret < 0)
- return dev_err_probe(&pdev->dev, ret, "Failed to request %s irq\n",
- irq_descs[i].name);
+ return ret;
}
return 0;
--
2.34.1
next prev parent reply other threads:[~2026-07-09 3:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 3:33 [PATCH 00/43] power: Remove redundant error messages on IRQ request failure Pan Chuang
2026-07-09 3:34 ` Pan Chuang [this message]
2026-07-09 3:34 ` [PATCH 27/43] power: supply: mt6370-charger: Remove redundant dev_err()/dev_err_probe() Pan Chuang
2026-07-18 1:15 ` [PATCH 00/43] power: Remove redundant error messages on IRQ request failure Sebastian Reichel
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=20260709033428.362970-27-panchuang@vivo.com \
--to=panchuang@vivo.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=sre@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