diff options
Diffstat (limited to 'arch/mips/mti-malta/malta-reset.c')
-rw-r--r-- | arch/mips/mti-malta/malta-reset.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/mti-malta/malta-reset.c b/arch/mips/mti-malta/malta-reset.c index f48d60e84290..329420536241 100644 --- a/arch/mips/mti-malta/malta-reset.c +++ b/arch/mips/mti-malta/malta-reset.c | |||
@@ -22,6 +22,7 @@ | |||
22 | * Reset the MIPS boards. | 22 | * Reset the MIPS boards. |
23 | * | 23 | * |
24 | */ | 24 | */ |
25 | #include <linux/init.h> | ||
25 | #include <linux/pm.h> | 26 | #include <linux/pm.h> |
26 | 27 | ||
27 | #include <asm/io.h> | 28 | #include <asm/io.h> |
@@ -45,9 +46,13 @@ static void mips_machine_halt(void) | |||
45 | } | 46 | } |
46 | 47 | ||
47 | 48 | ||
48 | void mips_reboot_setup(void) | 49 | static int __init mips_reboot_setup(void) |
49 | { | 50 | { |
50 | _machine_restart = mips_machine_restart; | 51 | _machine_restart = mips_machine_restart; |
51 | _machine_halt = mips_machine_halt; | 52 | _machine_halt = mips_machine_halt; |
52 | pm_power_off = mips_machine_halt; | 53 | pm_power_off = mips_machine_halt; |
54 | |||
55 | return 0; | ||
53 | } | 56 | } |
57 | |||
58 | arch_initcall(mips_reboot_setup); | ||