power: supply: sc27xx: Delete superfluous error message
authorTang Bin <tangbin@cmss.chinamobile.com>
Thu, 5 Aug 2021 12:52:33 +0000 (20:52 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 5 Aug 2021 15:57:25 +0000 (17:57 +0200)
In the function sc27xx_fgu_probe(), when get irq failed,
platform_get_irq() logs an error 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/sc27xx_fuel_gauge.c

index 1ae8374..ae45069 100644 (file)
@@ -1229,10 +1229,8 @@ static int sc27xx_fgu_probe(struct platform_device *pdev)
        }
 
        irq = platform_get_irq(pdev, 0);
-       if (irq < 0) {
-               dev_err(dev, "no irq resource specified\n");
+       if (irq < 0)
                return irq;
-       }
 
        ret = devm_request_threaded_irq(data->dev, irq, NULL,
                                        sc27xx_fgu_interrupt,