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

Message ID 1452885673-30891-5-git-send-email-anders.roxell@linaro.org
State New
Headers show

Commit Message

Anders Roxell Jan. 15, 2016, 7:21 p.m.
Used the at91_dt_defconfig and this caused a  compilation error without
this fix:
../drivers/clocksource/timer-atmel-st.c: In function
../drivers/clocksource/timer-atmel-st.c:157:2: error: 'ret' undeclared
(first use in this function)

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

 drivers/clocksource/timer-atmel-st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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;