summaryrefslogtreecommitdiff
path: root/drivers/power/supply/88pm860x_battery.c
diff options
context:
space:
mode:
authorTang Bin <tangbin@cmss.chinamobile.com>2020-04-06 08:07:57 +0300
committerSebastian Reichel <sre@kernel.org>2020-04-14 02:02:45 +0300
commit164eaf6b435c31d98fdabe0151e979fa0b4280a0 (patch)
treea8ff514e86e4431a5c5b84ec002fd560eae933dd /drivers/power/supply/88pm860x_battery.c
parent4ac54b88b6c191e400a4e5d09da3a693307365eb (diff)
downloadlinux-164eaf6b435c31d98fdabe0151e979fa0b4280a0.tar.xz
power: supply: 88pm860x_battery: remove redundant dev_err message
In the pm860x_battery_probe(), when get irq failed, the function platform_get_irq() logs an dev_err message, so remove redundant message here. Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/88pm860x_battery.c')
-rw-r--r--drivers/power/supply/88pm860x_battery.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/power/supply/88pm860x_battery.c b/drivers/power/supply/88pm860x_battery.c
index 5ca047b3f58f..1308f3a185f3 100644
--- a/drivers/power/supply/88pm860x_battery.c
+++ b/drivers/power/supply/88pm860x_battery.c
@@ -919,16 +919,12 @@ static int pm860x_battery_probe(struct platform_device *pdev)
return -ENOMEM;
info->irq_cc = platform_get_irq(pdev, 0);
- if (info->irq_cc <= 0) {
- dev_err(&pdev->dev, "No IRQ resource!\n");
+ if (info->irq_cc <= 0)
return -EINVAL;
- }
info->irq_batt = platform_get_irq(pdev, 1);
- if (info->irq_batt <= 0) {
- dev_err(&pdev->dev, "No IRQ resource!\n");
+ if (info->irq_batt <= 0)
return -EINVAL;
- }
info->chip = chip;
info->i2c =