summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-11-23 09:19:23 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-01-10 08:27:33 +0100
commitc9cdc136f71ecbdc32df5d558edf5030ed16b346 (patch)
tree2d97ffcd9a7e1ddd8ec421bee660a0f42895e008 /arch/nios2
parentf3738224ec9b485feb3dd5923c9eee9c42c2367f (diff)
downloadbarebox-c9cdc136f71ecbdc32df5d558edf5030ed16b346.tar.gz
barebox-c9cdc136f71ecbdc32df5d558edf5030ed16b346.tar.xz
nios2: Fix compiler warning
An initcall function needs to return a value, so return one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/cpu/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c
index b2164af812..77fde6be41 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);