Skip to content

Commit

Permalink
power: supply: 88pm860x_battery: remove redundant dev_err message
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
  • Loading branch information
Tang Bin authored and sre committed Apr 13, 2020
1 parent 4ac54b8 commit 164eaf6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/power/supply/88pm860x_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 164eaf6

Please sign in to comment.