diff options
| author | Pan Chuang <panchuang@vivo.com> | 2026-07-09 11:34:08 +0800 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-07-18 02:59:11 +0200 |
| commit | cd05fa1ffae4e21c520b64e203f50b7d76d35a4f (patch) | |
| tree | 469ddfd75ce3cca4d2abd8e203cdfeea3aa2a217 | |
| parent | 4fed9665ab09cb7c40f894506b8ee2730ed9f3e1 (diff) | |
| download | linux-stable-cd05fa1ffae4e21c520b64e203f50b7d76d35a4f.tar.gz linux-stable-cd05fa1ffae4e21c520b64e203f50b7d76d35a4f.zip | |
power: supply: qcom_smbb: Remove redundant dev_err()/dev_err_probe()
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>
Link: https://patch.msgid.link/20260709033428.362970-30-panchuang@vivo.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
| -rw-r--r-- | drivers/power/supply/qcom_smbb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/power/supply/qcom_smbb.c b/drivers/power/supply/qcom_smbb.c index 28afe758a2da..f33aab9619c4 100644 --- a/drivers/power/supply/qcom_smbb.c +++ b/drivers/power/supply/qcom_smbb.c @@ -937,11 +937,8 @@ static int smbb_charger_probe(struct platform_device *pdev) rc = devm_request_threaded_irq(&pdev->dev, irq, NULL, smbb_charger_irqs[i].handler, IRQF_ONESHOT, smbb_charger_irqs[i].name, chg); - if (rc) { - dev_err(&pdev->dev, "failed to request irq '%s'\n", - smbb_charger_irqs[i].name); + if (rc) return rc; - } } /* |
