summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-stm32.c
diff options
context:
space:
mode:
authorAmelie Delaunay <amelie.delaunay@st.com>2018-04-19 15:21:41 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-06 22:22:40 +0200
commitd213217d213e0e5648448fc2a5da977a74dc6ad9 (patch)
tree1db675925fb58c1ff82fc18d4caadbdd6fc89a50 /drivers/rtc/rtc-stm32.c
parent248056457287afe742c5a81abd0bdd3ce002750d (diff)
downloadlinux-d213217d213e0e5648448fc2a5da977a74dc6ad9.tar.bz2
rtc: stm32: fix alarm interrupt flags by removing IRQF_TRIGGER_RISING
RTC alarm interrupt is active high and already configured by device tree. So remove IRQF_TRIGGER_RISING from driver. Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-stm32.c')
-rw-r--r--drivers/rtc/rtc-stm32.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-stm32.c b/drivers/rtc/rtc-stm32.c
index 79d9e8673279..6a060780f797 100644
--- a/drivers/rtc/rtc-stm32.c
+++ b/drivers/rtc/rtc-stm32.c
@@ -663,8 +663,7 @@ static int stm32_rtc_probe(struct platform_device *pdev)
/* Handle RTC alarm interrupts */
ret = devm_request_threaded_irq(&pdev->dev, rtc->irq_alarm, NULL,
- stm32_rtc_alarm_irq,
- IRQF_TRIGGER_RISING | IRQF_ONESHOT,
+ stm32_rtc_alarm_irq, IRQF_ONESHOT,
pdev->name, rtc);
if (ret) {
dev_err(&pdev->dev, "IRQ%d (alarm interrupt) already claimed\n",