|
@@ -7,6 +7,7 @@
|
|
* Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology
|
|
* Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology
|
|
* Author: Fuxin Zhang, zhangfx@lemote.com
|
|
* Author: Fuxin Zhang, zhangfx@lemote.com
|
|
*/
|
|
*/
|
|
|
|
+#include <linux/init.h>
|
|
#include <linux/pm.h>
|
|
#include <linux/pm.h>
|
|
|
|
|
|
#include <asm/reboot.h>
|
|
#include <asm/reboot.h>
|
|
@@ -33,9 +34,13 @@ static void loongson2e_power_off(void)
|
|
loongson2e_halt();
|
|
loongson2e_halt();
|
|
}
|
|
}
|
|
|
|
|
|
-void mips_reboot_setup(void)
|
|
|
|
|
|
+static int __init mips_reboot_setup(void)
|
|
{
|
|
{
|
|
_machine_restart = loongson2e_restart;
|
|
_machine_restart = loongson2e_restart;
|
|
_machine_halt = loongson2e_halt;
|
|
_machine_halt = loongson2e_halt;
|
|
pm_power_off = loongson2e_power_off;
|
|
pm_power_off = loongson2e_power_off;
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+arch_initcall(mips_reboot_setup);
|