mirror of
https://github.com/torvalds/linux.git
synced 2026-09-28 03:52:02 +02:00
power: supply: twl6030_charger: 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-43-panchuang@vivo.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
ca5cb9488b
commit
c2d8a2b01b
|
|
@ -542,9 +542,7 @@ static int twl6030_charger_probe(struct platform_device *pdev)
|
|||
IRQF_ONESHOT, pdev->name,
|
||||
charger);
|
||||
if (ret < 0)
|
||||
return dev_err_probe(&pdev->dev, ret,
|
||||
"could not request irq %d\n",
|
||||
charger->irq_chg);
|
||||
return ret;
|
||||
|
||||
/* turing to charging to configure things */
|
||||
twl6030_charger_write(CONTROLLER_CTRL1, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user