# \[PATCH 1/9\] drivers/clocksource: timer-atmel-pit: fix irq name

- From: Anders Roxell \<hidden\>
- Date: 2016-01-15 19:26:58 
- List: linux-rt-users
- Page: https://ratatoskr.run/linux-rt-users/2016/01/16485834
- Thread: https://ratatoskr.run/linux-rt-users/2016/01/16485839/t.md

```text
Use the same irq (data->irq) that we used while registering the timer
handle, and not atmel_pit_irq.

Used multi_v7_defconfig+PREEMPT_RT_FULL=y and this caused a compilation
error without this fix:
../drivers/clocksource/timer-atmel-pit.c: In function
'pit_clkevt_shutdown':
../drivers/clocksource/timer-atmel-pit.c:99:11: error: 'atmel_pit_irq'
undeclared (first use in this function)
  free_irq(atmel_pit_irq, data);

Signed-off-by: Anders Roxell <redacted>
---
 drivers/clocksource/timer-atmel-pit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c
index 80d74c4..2e313e6 100644
--- a/drivers/clocksource/timer-atmel-pit.c
+++ b/drivers/clocksource/timer-atmel-pit.c
@@ -96,7 +96,7 @@ static int pit_clkevt_shutdown(struct clock_event_device *dev)
 
 	/* disable irq, leaving the clocksource active */
 	pit_write(data->base, AT91_PIT_MR, (data->cycle - 1) | AT91_PIT_PITEN);
-	free_irq(atmel_pit_irq, data);
+	free_irq(data->irq, data);
 	return 0;
 }
 
-- 
2.1.4

```
