summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPan Chuang <panchuang@vivo.com>2026-07-20 14:37:39 +0800
committerGuenter Roeck <linux@roeck-us.net>2026-07-27 20:30:44 -0700
commit08ef9c67097ab454c901ba91b7f249c28dfab84b (patch)
tree5cc19a0795da1dfeaffa6446c8481f20314a0272 /drivers
parent8eae9d1d836f4fca4c9514faf521da4778f6d35b (diff)
downloadlinux-next-08ef9c67097ab454c901ba91b7f249c28dfab84b.tar.gz
linux-next-08ef9c67097ab454c901ba91b7f249c28dfab84b.zip
hwmon: (pwm-fan) Remove redundant dev_err()
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@vivo.com> Link: https://lore.kernel.org/r/20260720063745.309331-6-panchuang@vivo.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/pwm-fan.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/hwmon/pwm-fan.c b/drivers/hwmon/pwm-fan.c
index 37f37813ea51..3b87f65bae05 100644
--- a/drivers/hwmon/pwm-fan.c
+++ b/drivers/hwmon/pwm-fan.c
@@ -628,12 +628,8 @@ static int pwm_fan_probe(struct platform_device *pdev)
if (tach->irq > 0) {
ret = devm_request_irq(dev, tach->irq, pulse_handler,
IRQF_NO_THREAD, pdev->name, tach);
- if (ret) {
- dev_err(dev,
- "Failed to request interrupt: %d\n",
- ret);
+ if (ret)
return ret;
- }
}
if (!ctx->pulses_per_revolution[i]) {