mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 22:31:32 +00:00
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>
This commit is contained in:
parent
4ac54b88b6
commit
164eaf6b43
@ -919,16 +919,12 @@ static int pm860x_battery_probe(struct platform_device *pdev)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
info->irq_cc = platform_get_irq(pdev, 0);
|
info->irq_cc = platform_get_irq(pdev, 0);
|
||||||
if (info->irq_cc <= 0) {
|
if (info->irq_cc <= 0)
|
||||||
dev_err(&pdev->dev, "No IRQ resource!\n");
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
|
||||||
|
|
||||||
info->irq_batt = platform_get_irq(pdev, 1);
|
info->irq_batt = platform_get_irq(pdev, 1);
|
||||||
if (info->irq_batt <= 0) {
|
if (info->irq_batt <= 0)
|
||||||
dev_err(&pdev->dev, "No IRQ resource!\n");
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
|
||||||
|
|
||||||
info->chip = chip;
|
info->chip = chip;
|
||||||
info->i2c =
|
info->i2c =
|
||||||
|
Loading…
Reference in New Issue
Block a user