diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2020-04-06 08:07:57 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2020-04-14 02:02:45 +0300 |
commit | 164eaf6b435c31d98fdabe0151e979fa0b4280a0 (patch) | |
tree | a8ff514e86e4431a5c5b84ec002fd560eae933dd /drivers/power | |
parent | 4ac54b88b6c191e400a4e5d09da3a693307365eb (diff) | |
download | linux-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')
-rw-r--r-- | drivers/power/supply/88pm860x_battery.c | 8 |
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 = |