mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
power: supply: surface-rt-ec: 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-39-panchuang@vivo.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
139c9e3744
commit
4e8ef72bbd
|
|
@ -337,7 +337,7 @@ static int srt_ec_probe(struct i2c_client *client)
|
|||
ret = devm_request_threaded_irq(dev, client->irq, NULL, srt_psy_detect_irq,
|
||||
IRQF_ONESHOT, client->name, srt);
|
||||
if (ret < 0)
|
||||
return dev_err_probe(dev, ret, "failed to request interrupt\n");
|
||||
return ret;
|
||||
|
||||
ret = devm_delayed_work_autocancel(dev, &srt->poll_work, srt_bat_poll_work);
|
||||
if (ret < 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user