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

power: supply: axp288_charger: Omit superfluous error message

In the axp288_charger_probe(), when get irq failed, the function
platform_get_irq() logs an error message, so remove redundant
message here.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Shengju Zhang <zhangshengju@cmss.chinamobile.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Tang Bin and committed by
Sebastian Reichel
aa86e907 7c1c5e38

+2 -3
+2 -3
drivers/power/supply/axp288_charger.c
··· 880 880 /* Register charger interrupts */ 881 881 for (i = 0; i < CHRG_INTR_END; i++) { 882 882 pirq = platform_get_irq(info->pdev, i); 883 - if (pirq < 0) { 884 - dev_err(&pdev->dev, "Failed to get IRQ: %d\n", pirq); 883 + if (pirq < 0) 885 884 return pirq; 886 - } 885 + 887 886 info->irq[i] = regmap_irq_get_virq(info->regmap_irqc, pirq); 888 887 if (info->irq[i] < 0) { 889 888 dev_warn(&info->pdev->dev,