summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPan Chuang <panchuang@vivo.com>2026-07-20 14:37:35 +0800
committerGuenter Roeck <linux@roeck-us.net>2026-08-10 08:59:41 -0700
commit93238564c0be57a59d3fb4d902e36effc14ca2b9 (patch)
tree7de444e328b56db62f1d065a5d64bcc13a51a92d
parent94f5081d359265985587b5c96797ca919253f480 (diff)
hwmon: (axi-fan-control) Remove redundant dev_err_probe()
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in devm_request_*_irq()"), devm_request_threaded_irq() automatically logs detailed error messages on failure. Remove the now-redundant driver-specific dev_err() calls. Signed-off-by: Pan Chuang <panchuang@vivo.com> Link: https://lore.kernel.org/r/20260720063745.309331-2-panchuang@vivo.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r--drivers/hwmon/axi-fan-control.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hwmon/axi-fan-control.c b/drivers/hwmon/axi-fan-control.c
index 1cb481a1ad26..04a767d762b3 100644
--- a/drivers/hwmon/axi-fan-control.c
+++ b/drivers/hwmon/axi-fan-control.c
@@ -508,8 +508,7 @@ static int axi_fan_control_probe(struct platform_device *pdev)
IRQF_ONESHOT | IRQF_TRIGGER_HIGH,
NULL, ctl);
if (ret)
- return dev_err_probe(&pdev->dev, ret,
- "failed to request an irq\n");
+ return ret;
return 0;
}