An initcall function needs to return a value, so return one. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- 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 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox