summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorYihao Han <hanyihao@vivo.com>2022-03-02 05:34:51 +0300
committerSebastian Reichel <sre@kernel.org>2022-03-05 00:20:32 +0300
commit4f084810ec26f3b7f58294cfa4e6028b1827f5fe (patch)
tree266559c7244186d0dceebde2a46aa337431def3b /drivers/power
parent99dcda8d1f6afa824cdb8ffc3ffa15ef530f6d83 (diff)
downloadlinux-4f084810ec26f3b7f58294cfa4e6028b1827f5fe.tar.xz
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/axp20x_usb_power.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/power/supply/axp20x_usb_power.c b/drivers/power/supply/axp20x_usb_power.c
index a1d110f7ddce..a1e6d1d44808 100644
--- a/drivers/power/supply/axp20x_usb_power.c
+++ b/drivers/power/supply/axp20x_usb_power.c
@@ -637,11 +637,9 @@ static int axp20x_usb_power_probe(struct platform_device *pdev)
/* Request irqs after registering, as irqs may trigger immediately */
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);
+ if (irq < 0)
return irq;
- }
+
power->irqs[i] = regmap_irq_get_virq(axp20x->regmap_irqc, irq);
ret = devm_request_any_context_irq(&pdev->dev, power->irqs[i],
axp20x_usb_power_irq, 0,