power: supply: 88pm860x_battery: remove redundant dev_err message
authorTang Bin <tangbin@cmss.chinamobile.com>
Mon, 6 Apr 2020 05:07:57 +0000 (13:07 +0800)
committerSebastian Reichel <sre@kernel.org>
Mon, 13 Apr 2020 23:02:45 +0000 (01:02 +0200)
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>
drivers/power/supply/88pm860x_battery.c

index 5ca047b..1308f3a 100644 (file)
@@ -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 =