Skip to contentSkip to conversation

nios2: clocksource: Fix build error

PATCH In review Guenter Roeck 2 participants 2 messages Jun 15, 2016 NIOS2 architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nios2: clocksource: Fix build error

gcc has trouble parsing returen.

Fixes 3e23d81046936 ("clocksource/drivers/nios2: Convert init function to return error")
Cc Daniel Lezcano <[email protected]>
---
 arch/nios2/kernel/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/nios2/kernel/time.c +1 -1
index f3686f038996..f337eefdccbd 100644
@@ -303,7 +303,7 @@ static __init int nios2_clocksource_init(struct device_node *timer)
 	/* Calibrate the delay loop directly */
 	lpj_fine = freq / HZ;
 
-	returen 0;
+	return 0;
 }
 
 /*
Signature · 1 line
2.5.0
#1 lore raw
Quoted 14 lines · Guenter Roeck

gcc has trouble parsing returen.

Fixes 3e23d81046936 ("clocksource/drivers/nios2: Convert init function to return error")
Cc Daniel Lezcano <[email protected]>
---
  arch/nios2/kernel/time.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/nios2/kernel/time.c +0 -0
index f3686f038996..f337eefdccbd 100644

arch/nios2/kernel/time.c static __init int nios2_clocksource_init(struct device_node *timer) · line 306

Quoted 5 lines
arch/nios2/kernel/time.c +1 -1
@@ -303,7 +303,7 @@ static __init int nios2_clocksource_init(struct device_node *timer)
  	/* Calibrate the delay loop directly */
  	lpj_fine = freq / HZ;
 
-	returen 0;
+	return 0;

Fixed, thanks !

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog