Commit 164eaf6b authored by Tang Bin's avatar Tang Bin Committed by Sebastian Reichel
Browse files

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: default avatarTang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 4ac54b88
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -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 =