diff options
Diffstat (limited to 'arch/mips/lemote/lm2e/reset.c')
-rw-r--r-- | arch/mips/lemote/lm2e/reset.c | 7 |
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 | ||
36 | void mips_reboot_setup(void) | 37 | static 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 | |||
46 | arch_initcall(mips_reboot_setup); | ||