Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Yihao Han and committed by
Sebastian Reichel
4f084810 99dcda8d

+2 -4
+2 -4
drivers/power/supply/axp20x_usb_power.c
··· 637 637 /* Request irqs after registering, as irqs may trigger immediately */ 638 638 for (i = 0; i < axp_data->num_irq_names; i++) { 639 639 irq = platform_get_irq_byname(pdev, axp_data->irq_names[i]); 640 - if (irq < 0) { 641 - dev_err(&pdev->dev, "No IRQ for %s: %d\n", 642 - axp_data->irq_names[i], irq); 640 + if (irq < 0) 643 641 return irq; 644 - } 642 + 645 643 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq); 646 644 ret = devm_request_any_context_irq(&pdev->dev, power->irqs[i], 647 645 axp20x_usb_power_irq, 0,