summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranck Jullien <franck.jullien@gmail.com>2017-03-24 20:35:22 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-30 08:22:28 +0200
commit441e9f5a72b245b671118f3e771eb129834a7a34 (patch)
tree9780faae2908edf3bdd5b812c51db8c09aac6e96
parent8b73b0fab75a17b84738ac4584ece9b63219960d (diff)
downloadbarebox-441e9f5a72b245b671118f3e771eb129834a7a34.tar.gz
openrisc: fix call to restart_handler_register_fn
Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/openrisc/cpu/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/openrisc/cpu/cpu.c b/arch/openrisc/cpu/cpu.c
index d52b021..e7f9445 100644
--- a/arch/openrisc/cpu/cpu.c
+++ b/arch/openrisc/cpu/cpu.c
@@ -41,6 +41,6 @@ static void __noreturn openrisc_restart_cpu(struct restart_handler *rst)
static int restart_register_feature(void)
{
- restart_handler_register_fn(openrisc_restart_cpu, NULL, RESET_SCOPE_CPU);
+ return restart_handler_register_fn(openrisc_restart_cpu);
}
coredevice_initcall(restart_register_feature);