# \[PATCH 4/9\] drivers/clocksource: timer-atmel-st: undeclared var 'ret'

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

```text
Used the at91_dt_defconfig and this caused a  compilation error without
this fix:
../drivers/clocksource/timer-atmel-st.c: In function
'clkevt32k_set_periodic':
../drivers/clocksource/timer-atmel-st.c:157:2: error: 'ret' undeclared
(first use in this function)

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

diff --git a/drivers/clocksource/timer-atmel-st.c b/drivers/clocksource/timer-atmel-st.c
index ea37afc..b6f4aa6 100644
--- a/drivers/clocksource/timer-atmel-st.c
+++ b/drivers/clocksource/timer-atmel-st.c
@@ -150,7 +150,7 @@ static int clkevt32k_set_oneshot(struct clock_event_device *dev)
 
 static int clkevt32k_set_periodic(struct clock_event_device *dev)
 {
-	int irq;
+	int irq, ret;
 
 	clkdev32k_disable_and_flush_irq();
 
-- 
2.1.4

```
