[PATCH 03/10] nios2: Fix compiler warning

Sascha Hauer s.hauer at pengutronix.de
Wed Nov 23 01:39:30 PST 2016


An initcall function needs to return a value, so return one.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/nios2/cpu/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c
index b2164af..77fde6b 100644
--- a/arch/nios2/cpu/cpu.c
+++ b/arch/nios2/cpu/cpu.c
@@ -33,7 +33,7 @@ static void __noreturn nios2_restart_soc(struct restart_handler *rst)
 
 static int restart_register_feature(void)
 {
-	restart_handler_register_fn(nios2_restart_soc);
+	return restart_handler_register_fn(nios2_restart_soc);
 }
 coredevice_initcall(restart_register_feature);
 
-- 
2.10.2




More information about the barebox mailing list