aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-m48t59.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2021-03-11 09:48:09 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2021-03-11 09:48:09 +0100
commit55cc33fab5ac9f7e2a97aa7c564e8b35355886d5 (patch)
treec7d03072896f8847b989a704f12b842cca980224 /drivers/rtc/rtc-m48t59.c
parenta38fd8748464831584a19438cbb3082b5a2dab15 (diff)
downloadlinux-55cc33fab5ac9f7e2a97aa7c564e8b35355886d5.tar.gz
rtc: m48t59: use platform_get_irq_optional
The IRQ is optional, avoid the error message by using platform_get_irq_optional. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-m48t59.c')
-rw-r--r--drivers/rtc/rtc-m48t59.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-m48t59.c b/drivers/rtc/rtc-m48t59.c
index 1d2e99a70fce8..f0f6b9b6daecb 100644
--- a/drivers/rtc/rtc-m48t59.c
+++ b/drivers/rtc/rtc-m48t59.c
@@ -421,7 +421,7 @@ static int m48t59_rtc_probe(struct platform_device *pdev)
/* Try to get irq number. We also can work in
* the mode without IRQ.
*/
- m48t59->irq = platform_get_irq(pdev, 0);
+ m48t59->irq = platform_get_irq_optional(pdev, 0);
if (m48t59->irq <= 0)
m48t59->irq = NO_IRQ;