rtc: bd70528: Avoid double error messaging when IRQ absent
authorKeyur Patel <iamkeyur96@gmail.com>
Sat, 21 Mar 2020 18:08:37 +0000 (14:08 -0400)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 23 Mar 2020 08:27:17 +0000 (09:27 +0100)
Since the commit 7723f4c ("driver core: platform: Add an error message
to platform_get_irq*()") platform_get_irq() started issuing an error message.
Thus, there is no need to have the same in the driver.

Signed-off-by: Keyur Patel <iamkeyur96@gmail.com>
Link: https://lore.kernel.org/r/20200321180838.12729-1-iamkeyur96@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-bd70528.c

index bbbb1f07c91ffe5029d5320c98c7d7f8f0b4b817..4492b770422c8f566a8e10e8fc3820c5a88e771d 100644 (file)
@@ -542,10 +542,8 @@ static int bd70528_probe(struct platform_device *pdev)
 
        irq = platform_get_irq_byname(pdev, irq_name);
 
-       if (irq < 0) {
-               dev_err(&pdev->dev, "Failed to get irq\n");
+       if (irq < 0)
                return irq;
-       }
 
        platform_set_drvdata(pdev, bd_rtc);