summaryrefslogtreecommitdiff
path: root/arch/mips/lemote/lm2e/reset.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-09-15 17:00:02 +0400
committerRalf Baechle <ralf@linux-mips.org>2009-09-17 22:07:43 +0400
commit38c9fb743f0d6e9dd8ee45e3e6247bc7d147c4de (patch)
treea389f9079cc3f2f4d98eba1a638d44236af47266 /arch/mips/lemote/lm2e/reset.c
parent1f320d053c666567a8e440ebcec4ed7f7006b006 (diff)
downloadlinux-38c9fb743f0d6e9dd8ee45e3e6247bc7d147c4de.tar.xz
MIPS: Fulong: Convert reset initialization to initcall.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/lemote/lm2e/reset.c')
-rw-r--r--arch/mips/lemote/lm2e/reset.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/lemote/lm2e/reset.c b/arch/mips/lemote/lm2e/reset.c
index 099387a3827a..2e64bf6929e7 100644
--- a/arch/mips/lemote/lm2e/reset.c
+++ b/arch/mips/lemote/lm2e/reset.c
@@ -7,6 +7,7 @@
* Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology
* Author: Fuxin Zhang, zhangfx@lemote.com
*/
+#include <linux/init.h>
#include <linux/pm.h>
#include <asm/reboot.h>
@@ -33,9 +34,13 @@ static void loongson2e_power_off(void)
loongson2e_halt();
}
-void mips_reboot_setup(void)
+static int __init mips_reboot_setup(void)
{
_machine_restart = loongson2e_restart;
_machine_halt = loongson2e_halt;
pm_power_off = loongson2e_power_off;
+
+ return 0;
}
+
+arch_initcall(mips_reboot_setup);