[PATCH v2 4/7] hwmon: (npcm750-pwm-fan) Remove redundant dev_err()
From: Pan Chuang
Date: Mon Jul 20 2026 - 02:40:20 EST
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() call.
Signed-off-by: Pan Chuang <panchuang@xxxxxxxx>
---
drivers/hwmon/npcm750-pwm-fan.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/hwmon/npcm750-pwm-fan.c b/drivers/hwmon/npcm750-pwm-fan.c
index aea0b8659f5f..df24dec78e77 100644
--- a/drivers/hwmon/npcm750-pwm-fan.c
+++ b/drivers/hwmon/npcm750-pwm-fan.c
@@ -991,10 +991,8 @@ static int npcm7xx_pwm_fan_probe(struct platform_device *pdev)
sprintf(name, "NPCM7XX-FAN-MD%d", i);
ret = devm_request_irq(dev, data->fan_irq[i], npcm7xx_fan_isr,
0, name, (void *)data);
- if (ret) {
- dev_err(dev, "register IRQ fan%d failed\n", i);
+ if (ret)
return ret;
- }
}
for_each_child_of_node_scoped(np, child) {
--
2.34.1