|
@@ -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);
|