Skip to contentSkip to conversation

rtc: twl: add missing IRQF_ONESHOT

PATCH In review Felipe Balbi 2 participants 3 messages Jun 14, 2012 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc: twl: add missing IRQF_ONESHOT

This patch gets rid of the following warning:

[    2.825378] genirq: Threaded irq requested with \
	handler=NULL and !ONESHOT for irq 363
---
 drivers/rtc/rtc-twl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-twl.c +1 -1
index 258abea..c5d06fe 100644
@@ -510,7 +510,7 @@ static int __devinit twl_rtc_probe(struct platform_device *pdev)
 	}
 
 	ret = request_threaded_irq(irq, NULL, twl_rtc_interrupt,
-				   IRQF_TRIGGER_RISING,
+				   IRQF_TRIGGER_RISING | IRQF_ONESHOT,
 				   dev_name(&rtc->dev), rtc);
 	if (ret < 0) {
 		dev_err(&pdev->dev, "IRQ is not free.\n");
Signature · 1 line
1.7.10.4
#2 lore raw

Hi,

Quoted 10 lines · Santosh
Quoted 7 lines · Felipe Balbi

This patch gets rid of the following warning:

[    2.825378] genirq: Threaded irq requested with \
       handler=NULL and !ONESHOT for irq 363

---

Ming Lei has posted a similar fix earlier [1]

good, never mind this one then

Signature · 1 line
balbi