# \[PATCH 2/4\] ixp4xx-beeper: Use IRQF\_NO\_SUSPEND not IRQF\_TIMER for non-timer interrupt

- From: Ian Campbell \<hidden\>
- Date: 2010-07-29 10:16:57 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2010/07/3598480
- Thread: https://ratatoskr.run/linux-input/2010/07/3598011/t.md

```text
ixp4xx_spkr_interrupt is not a timer interrupt and therefore should
not use IRQF_TIMER. Use the recently introduced IRQF_NO_SUSPEND
instead since that is the actual desired behaviour.

Signed-off-by: Ian Campbell <redacted>
Cc: Thomas Gleixner <redacted>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: <redacted>
---
 drivers/input/misc/ixp4xx-beeper.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/input/misc/ixp4xx-beeper.c b/drivers/input/misc/ixp4xx-beeper.c
index 9946d73..9dfd6e5 100644
--- a/drivers/input/misc/ixp4xx-beeper.c
+++ b/drivers/input/misc/ixp4xx-beeper.c
@@ -115,7 +115,8 @@ static int __devinit ixp4xx_spkr_probe(struct platform_device *dev)
 	input_dev->event = ixp4xx_spkr_event;
 
 	err = request_irq(IRQ_IXP4XX_TIMER2, &ixp4xx_spkr_interrupt,
-			  IRQF_DISABLED | IRQF_TIMER, "ixp4xx-beeper", (void *) dev->id);
+			  IRQF_DISABLED | IRQF_NO_SUSPEND, "ixp4xx-beeper",
+			  (void *) dev->id);
 	if (err)
 		goto err_free_device;
 
-- 
1.5.6.5

```
