summaryrefslogtreecommitdiffstats
path: root/arch/mips/mti-malta/malta-reset.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-09-15 14:50:39 +0200
committerRalf Baechle <ralf@linux-mips.org>2009-09-17 20:07:43 +0200
commit1f320d053c666567a8e440ebcec4ed7f7006b006 (patch)
treecff741de3fdb3559b378672c146498e10619c335 /arch/mips/mti-malta/malta-reset.c
parentMIPS: Get rid of duplicate cpu_idle() prototype. (diff)
downloadlinux-1f320d053c666567a8e440ebcec4ed7f7006b006.tar.xz
linux-1f320d053c666567a8e440ebcec4ed7f7006b006.zip
MIPS: Malta: Convert reset initialization to initcall.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mti-malta/malta-reset.c')
-rw-r--r--arch/mips/mti-malta/malta-reset.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/mti-malta/malta-reset.c b/arch/mips/mti-malta/malta-reset.c
index f48d60e84290..329420536241 100644
--- a/arch/mips/mti-malta/malta-reset.c
+++ b/arch/mips/mti-malta/malta-reset.c
@@ -22,6 +22,7 @@
* Reset the MIPS boards.
*
*/
+#include <linux/init.h>
#include <linux/pm.h>
#include <asm/io.h>
@@ -45,9 +46,13 @@ static void mips_machine_halt(void)
}
-void mips_reboot_setup(void)
+static int __init mips_reboot_setup(void)
{
_machine_restart = mips_machine_restart;
_machine_halt = mips_machine_halt;
pm_power_off = mips_machine_halt;
+
+ return 0;
}
+
+arch_initcall(mips_reboot_setup);