summaryrefslogtreecommitdiffstats
path: root/arch/ppc
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2016-05-27 11:32:49 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-05-30 07:07:48 +0200
commita72a1ae90a6739bb6d73b532bf7e9ca1852a2c33 (patch)
treeadd780a34e391373dffb422fb681fff704c2edd3 /arch/ppc
parenta23eb47bf2fe0b4f9ad480d61f1b0635b6f189f3 (diff)
downloadbarebox-a72a1ae90a6739bb6d73b532bf7e9ca1852a2c33.tar.gz
barebox-a72a1ae90a6739bb6d73b532bf7e9ca1852a2c33.tar.xz
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 <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc')
-rw-r--r--arch/ppc/mach-mpc5xxx/cpu.c2
1 files changed, 1 insertions, 1 deletions
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);