mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
power: supply: axp20x_usb_power: fix platform_get_irq.cocci warnings
Remove dev_err() messages after platform_get_irq*() failures. platform_get_irq() already prints an error. Generated by: scripts/coccinelle/api/platform_get_irq.cocci Signed-off-by: Yihao Han <hanyihao@vivo.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
99dcda8d1f
commit
4f084810ec
@ -637,11 +637,9 @@ static int axp20x_usb_power_probe(struct platform_device *pdev)
|
||||
/* Request irqs after registering, as irqs may trigger immediately */
|
||||
for (i = 0; i < axp_data->num_irq_names; i++) {
|
||||
irq = platform_get_irq_byname(pdev, axp_data->irq_names[i]);
|
||||
if (irq < 0) {
|
||||
dev_err(&pdev->dev, "No IRQ for %s: %d\n",
|
||||
axp_data->irq_names[i], irq);
|
||||
if (irq < 0)
|
||||
return irq;
|
||||
}
|
||||
|
||||
power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq);
|
||||
ret = devm_request_any_context_irq(&pdev->dev, power->irqs[i],
|
||||
axp20x_usb_power_irq, 0,
|
||||
|
Loading…
Reference in New Issue
Block a user