MIPS: Malta: Convert reset initialization to initcall.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 15 Sep 2009 12:50:39 +0000 (14:50 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Sep 2009 18:07:43 +0000 (20:07 +0200)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mti-malta/malta-reset.c
arch/mips/mti-malta/malta-setup.c

index f48d60e8429017b52352e8e0b59bc18faa0e9061..329420536241b5b70743d5ef7ce56c02a4087aa3 100644 (file)
@@ -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);
index dc78b8983eeb2688b0fbae098561b53a9885c028..b7f37d4982fab27b91213a83be7a178626b694cb 100644 (file)
@@ -218,7 +218,6 @@ void __init plat_mem_setup(void)
 #if defined(CONFIG_VT) && defined(CONFIG_VGA_CONSOLE)
        screen_info_setup();
 #endif
-       mips_reboot_setup();
 
        board_be_init = malta_be_init;
        board_be_handler = malta_be_handler;