diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/reset.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/kernel/reset.c b/arch/mips/kernel/reset.c index ae2ba67b7ef6..5e37df3111ad 100644 --- a/arch/mips/kernel/reset.c +++ b/arch/mips/kernel/reset.c | |||
@@ -12,6 +12,9 @@ | |||
12 | #include <linux/reboot.h> | 12 | #include <linux/reboot.h> |
13 | #include <asm/reboot.h> | 13 | #include <asm/reboot.h> |
14 | 14 | ||
15 | void (*pm_power_off)(void); | ||
16 | EXPORT_SYMBOL(pm_power_off); | ||
17 | |||
15 | /* | 18 | /* |
16 | * Urgs ... Too many MIPS machines to handle this in a generic way. | 19 | * Urgs ... Too many MIPS machines to handle this in a generic way. |
17 | * So handle all using function pointers to machine specific | 20 | * So handle all using function pointers to machine specific |
@@ -33,6 +36,9 @@ void machine_halt(void) | |||
33 | 36 | ||
34 | void machine_power_off(void) | 37 | void machine_power_off(void) |
35 | { | 38 | { |
39 | if (pm_power_off) | ||
40 | pm_power_off(); | ||
41 | |||
36 | _machine_power_off(); | 42 | _machine_power_off(); |
37 | } | 43 | } |
38 | 44 | ||