From a72a1ae90a6739bb6d73b532bf7e9ca1852a2c33 Mon Sep 17 00:00:00 2001 From: Juergen Borleis Date: Fri, 27 May 2016 11:32:49 +0200 Subject: PPC: clean compiler warning This change fixes the following compiler warning: arch/ppc/mach-mpc5xxx/cpu.c: In function 'restart_register_feature': arch/ppc/mach-mpc5xxx/cpu.c:81:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ Signed-off-by: Juergen Borleis Signed-off-by: Sascha Hauer --- arch/ppc/mach-mpc5xxx/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ppc/mach-mpc5xxx/cpu.c b/arch/ppc/mach-mpc5xxx/cpu.c index 33835e7060..42ced9ac54 100644 --- a/arch/ppc/mach-mpc5xxx/cpu.c +++ b/arch/ppc/mach-mpc5xxx/cpu.c @@ -77,7 +77,7 @@ static void __noreturn mpc5xxx_restart_soc(struct restart_handler *rst) static int restart_register_feature(void) { - restart_handler_register_fn(mpc5xxx_restart_soc); + return restart_handler_register_fn(mpc5xxx_restart_soc); } coredevice_initcall(restart_register_feature); -- cgit v1.2.3