mirror of
https://github.com/torvalds/linux.git
synced 2026-09-27 11:02:03 +02:00
power: supply: sc27xx_fuel_gauge: 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-38-panchuang@vivo.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
bfae8c8ad5
commit
139c9e3744
|
|
@ -1231,10 +1231,8 @@ static int sc27xx_fgu_probe(struct platform_device *pdev)
|
|||
sc27xx_fgu_interrupt,
|
||||
IRQF_NO_SUSPEND | IRQF_ONESHOT,
|
||||
pdev->name, data);
|
||||
if (ret) {
|
||||
dev_err(data->dev, "failed to request fgu IRQ\n");
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
irq = gpiod_to_irq(data->gpiod);
|
||||
if (irq < 0) {
|
||||
|
|
@ -1247,10 +1245,8 @@ static int sc27xx_fgu_probe(struct platform_device *pdev)
|
|||
IRQF_ONESHOT | IRQF_TRIGGER_RISING |
|
||||
IRQF_TRIGGER_FALLING,
|
||||
pdev->name, data);
|
||||
if (ret) {
|
||||
dev_err(dev, "failed to request IRQ\n");
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user