mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
hwmon: (npcm750-pwm-fan) Remove redundant dev_err()
Since commit 55b48e23f5 ("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-5-panchuang@vivo.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
6dda9ad314
commit
87dc289532
|
|
@ -996,10 +996,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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user