diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2020-04-15 12:27:27 +0800 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2020-04-29 01:45:00 +0200 |
commit | aa86e90794c8a76c38f2897aff6c1eaa3b96bba6 (patch) | |
tree | ffdb196d63f4cc41f42c03347df26582a1eca20d /drivers/power | |
parent | 7c1c5e38fd31e89391211c0b3e5000666c7d6126 (diff) | |
download | linux-aa86e90794c8a76c38f2897aff6c1eaa3b96bba6.tar.bz2 |
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>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/axp288_charger.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/power/supply/axp288_charger.c b/drivers/power/supply/axp288_charger.c index cf4c67b2d235..9d981b76c1e7 100644 --- a/drivers/power/supply/axp288_charger.c +++ b/drivers/power/supply/axp288_charger.c @@ -880,10 +880,9 @@ static int axp288_charger_probe(struct platform_device *pdev) /* Register charger interrupts */ for (i = 0; i < CHRG_INTR_END; i++) { pirq = platform_get_irq(info->pdev, i); - if (pirq < 0) { - dev_err(&pdev->dev, "Failed to get IRQ: %d\n", pirq); + if (pirq < 0) return pirq; - } + info->irq[i] = regmap_irq_get_virq(info->regmap_irqc, pirq); if (info->irq[i] < 0) { dev_warn(&info->pdev->dev, |