summaryrefslogtreecommitdiffstats
path: root/arch/csky/kernel/power.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/csky/kernel/power.c')
-rw-r--r--arch/csky/kernel/power.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/csky/kernel/power.c b/arch/csky/kernel/power.c
index 923ee4e381b8..86ee202906f8 100644
--- a/arch/csky/kernel/power.c
+++ b/arch/csky/kernel/power.c
@@ -9,16 +9,14 @@ EXPORT_SYMBOL(pm_power_off);
void machine_power_off(void)
{
local_irq_disable();
- if (pm_power_off)
- pm_power_off();
+ do_kernel_power_off();
asm volatile ("bkpt");
}
void machine_halt(void)
{
local_irq_disable();
- if (pm_power_off)
- pm_power_off();
+ do_kernel_power_off();
asm volatile ("bkpt");
}