mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
power: supply: da9150-fg: 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-20-panchuang@vivo.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
16447b9ef4
commit
79993fd38d
|
|
@ -524,10 +524,8 @@ static int da9150_fg_probe(struct platform_device *pdev)
|
|||
|
||||
ret = devm_request_threaded_irq(dev, irq, NULL, da9150_fg_irq,
|
||||
IRQF_ONESHOT, "FG", fg);
|
||||
if (ret) {
|
||||
dev_err(dev, "Failed to request IRQ %d: %d\n", irq, ret);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user