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

From
Anders Roxell <hidden>
Date
2016-01-15 19:27:03
Reply to
Anders Roxell, 2016-01-15
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
Thread (15 messages) 15 messages, 3 authors, last reply 2016-01-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help