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

power: supply: qcom_smbb: Remove superfluous error message

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

Co-developed-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Tang Bin and committed by
Sebastian Reichel
391719dc cc2712f2

+1 -4
+1 -4
drivers/power/supply/qcom_smbb.c
··· 929 929 int irq; 930 930 931 931 irq = platform_get_irq_byname(pdev, smbb_charger_irqs[i].name); 932 - if (irq < 0) { 933 - dev_err(&pdev->dev, "failed to get irq '%s'\n", 934 - smbb_charger_irqs[i].name); 932 + if (irq < 0) 935 933 return irq; 936 - } 937 934 938 935 smbb_charger_irqs[i].handler(irq, chg); 939 936