[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220302023451.5040-1-hanyihao@vivo.com>
Date: Tue, 1 Mar 2022 18:34:51 -0800
From: Yihao Han <hanyihao@...o.com>
To: Sebastian Reichel <sre@...nel.org>, Chen-Yu Tsai <wens@...e.org>,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: kernel@...o.com, Yihao Han <hanyihao@...o.com>
Subject: [PATCH] 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@...o.com>
---
drivers/power/supply/axp20x_usb_power.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/power/supply/axp20x_usb_power.c b/drivers/power/supply/axp20x_usb_power.c
index a1d110f7ddce..75170fe79cbf 100644
--- a/drivers/power/supply/axp20x_usb_power.c
+++ b/drivers/power/supply/axp20x_usb_power.c
@@ -638,8 +638,6 @@ static int axp20x_usb_power_probe(struct platform_device *pdev)
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);
return irq;
}
power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq);
--
2.17.1
Powered by blists - more mailing lists