aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/lemote/lm2e/reset.c
diff options
context:
space:
mode:
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 @@
7 * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology 7 * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology
8 * Author: Fuxin Zhang, zhangfx@lemote.com 8 * Author: Fuxin Zhang, zhangfx@lemote.com
9 */ 9 */
10#include <linux/init.h>
10#include <linux/pm.h> 11#include <linux/pm.h>
11 12
12#include <asm/reboot.h> 13#include <asm/reboot.h>
@@ -33,9 +34,13 @@ static void loongson2e_power_off(void)
33 loongson2e_halt(); 34 loongson2e_halt();
34} 35}
35 36
36void mips_reboot_setup(void) 37static int __init mips_reboot_setup(void)
37{ 38{
38 _machine_restart = loongson2e_restart; 39 _machine_restart = loongson2e_restart;
39 _machine_halt = loongson2e_halt; 40 _machine_halt = loongson2e_halt;
40 pm_power_off = loongson2e_power_off; 41 pm_power_off = loongson2e_power_off;
42
43 return 0;
41} 44}
45
46arch_initcall(mips_reboot_setup);