mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 09:41:03 +02:00
power: supply: max8971_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-25-panchuang@vivo.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
28b94b06c6
commit
342b3ce230
|
|
@ -684,7 +684,7 @@ static int max8971_probe(struct i2c_client *client)
|
|||
err = devm_request_threaded_irq(dev, client->irq, NULL, &max8971_interrupt,
|
||||
IRQF_ONESHOT | IRQF_SHARED, client->name, priv);
|
||||
if (err)
|
||||
return dev_err_probe(dev, err, "failed to register IRQ %d\n", client->irq);
|
||||
return err;
|
||||
|
||||
extcon = of_graph_get_remote_node(dev->of_node, -1, -1);
|
||||
if (!extcon)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user