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

power: supply: axp20x_ac_power: fix platform_get_irq.cocci warning

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
99dcda8d 6dee930f

+2 -4
+2 -4
drivers/power/supply/axp20x_ac_power.c
··· 377 377 /* Request irqs after registering, as irqs may trigger immediately */ 378 378 for (i = 0; i < axp_data->num_irq_names; i++) { 379 379 irq = platform_get_irq_byname(pdev, axp_data->irq_names[i]); 380 - if (irq < 0) { 381 - dev_err(&pdev->dev, "No IRQ for %s: %d\n", 382 - axp_data->irq_names[i], irq); 380 + if (irq < 0) 383 381 return irq; 384 - } 382 + 385 383 power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq); 386 384 ret = devm_request_any_context_irq(&pdev->dev, power->irqs[i], 387 385 axp20x_ac_power_irq, 0,