summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-bd70528.c
diff options
context:
space:
mode:
authorKeyur Patel <iamkeyur96@gmail.com>2020-03-21 14:08:37 -0400
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2020-03-23 09:27:17 +0100
commit6e7af45102994dca6941720c2207f081f8f26adc (patch)
treef490369639cfd129cd94c40687f5de05dd701f46 /drivers/rtc/rtc-bd70528.c
parentc05a31f4d1de8f49f66f499e67da9c3d745c4f19 (diff)
rtc: bd70528: Avoid double error messaging when IRQ absent
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>
Diffstat (limited to 'drivers/rtc/rtc-bd70528.c')
-rw-r--r--drivers/rtc/rtc-bd70528.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-bd70528.c b/drivers/rtc/rtc-bd70528.c
index bbbb1f07c91f..4492b770422c 100644
--- a/drivers/rtc/rtc-bd70528.c
+++ b/drivers/rtc/rtc-bd70528.c
@@ -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);