aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPan Chuang <panchuang@vivo.com>2026-07-09 11:33:56 +0800
committerSebastian Reichel <sebastian.reichel@collabora.com>2026-07-18 02:59:10 +0200
commitfb5ce24c6e907165022a7df627bdf573d2c8fd1f (patch)
tree91dfb966e7ce48eda8361a07c02b7a29db1775d9
parentpower: supply: bq257xx_charger: Remove redundant dev_err()/dev_err_probe() (diff)
power: supply: cpcap-battery: 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-18-panchuang@vivo.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
-rw-r--r--drivers/power/supply/cpcap-battery.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/power/supply/cpcap-battery.c b/drivers/power/supply/cpcap-battery.c
index 59c741993ef8..1d2b8bb08564 100644
--- a/drivers/power/supply/cpcap-battery.c
+++ b/drivers/power/supply/cpcap-battery.c
@@ -957,12 +957,8 @@ static int cpcap_battery_init_irq(struct platform_device *pdev,
cpcap_battery_irq_thread,
IRQF_SHARED | IRQF_ONESHOT,
name, ddata);
- if (error) {
- dev_err(ddata->dev, "could not get irq %s: %i\n",
- name, error);
-
+ if (error)
return error;
- }
d = devm_kzalloc(ddata->dev, sizeof(*d), GFP_KERNEL);
if (!d)