power: supply: axp20x_usb_power: Remove redundant dev_err()/dev_err_probe()

The devm_request_any_context_irq() now automatically logs 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-10-panchuang@vivo.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
Pan Chuang 2026-07-09 11:33:48 +08:00 committed by Sebastian Reichel
parent daa60df947
commit d8b7f5b39c

View File

@ -1030,11 +1030,8 @@ static int axp20x_usb_power_probe(struct platform_device *pdev)
ret = devm_request_any_context_irq(&pdev->dev, power->irqs[i],
axp20x_usb_power_irq, 0,
DRVNAME, power);
if (ret < 0) {
dev_err(&pdev->dev, "Error requesting %s IRQ: %d\n",
axp_data->irq_names[i], ret);
if (ret < 0)
return ret;
}
}
if (axp20x_usb_vbus_needs_polling(power))