diff options
author | Hariprasad Kelam <hariprasad.kelam@gmail.com> | 2019-07-11 23:26:15 +0530 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-07-13 21:39:51 +0200 |
commit | f0162d21cc8025c828fafe56ee25801f770f41da (patch) | |
tree | de748bc8506019fe6a9f9febfe4df6e11b59f410 | |
parent | fe63604c630acfc51797d5896ff01cd59c684572 (diff) | |
download | linux-f0162d21cc8025c828fafe56ee25801f770f41da.tar.bz2 |
rtc: wm831x: Add IRQF_ONESHOT flag
fix below issue reported by coccicheck
drivers/rtc/rtc-wm831x.c:436:7-32: ERROR: Threaded IRQ with no primary
handler requested without IRQF_ONESHOT
Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20190711175615.GA13651@hari-Inspiron-1545
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r-- | drivers/rtc/rtc-wm831x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-wm831x.c b/drivers/rtc/rtc-wm831x.c index d2e8b21c90c4..ccef887d2690 100644 --- a/drivers/rtc/rtc-wm831x.c +++ b/drivers/rtc/rtc-wm831x.c @@ -435,7 +435,8 @@ static int wm831x_rtc_probe(struct platform_device *pdev) ret = devm_request_threaded_irq(&pdev->dev, alm_irq, NULL, wm831x_alm_irq, - IRQF_TRIGGER_RISING, "RTC alarm", + IRQF_TRIGGER_RISING | IRQF_ONESHOT, + "RTC alarm", wm831x_rtc); if (ret != 0) { dev_err(&pdev->dev, "Failed to request alarm IRQ %d: %d\n", |