From: Peter Ma Date: Sat, 19 Apr 2008 07:24:25 +0000 (-0700) Subject: avr32: Add hardware power-down function call X-Git-Tag: v2.6.26-rc1~1128^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ed3fa7c9510cde67d232299cab8052ff50a08285;p=linux-2.6-omap-h63xx.git avr32: Add hardware power-down function call This patch adds in the indirect call to pm_power_off(), as is done in other architectures (e.g. ARM). Tested on NGW100, with custom board with GPIO control over main DC power. Signed-off-by: Peter Ma Signed-off-by: Haavard Skinnemoen --- diff --git a/arch/avr32/kernel/process.c b/arch/avr32/kernel/process.c index 3de115462d7..6cf9df17627 100644 --- a/arch/avr32/kernel/process.c +++ b/arch/avr32/kernel/process.c @@ -54,6 +54,8 @@ void machine_halt(void) void machine_power_off(void) { + if (pm_power_off) + pm_power_off(); } void machine_restart(char *cmd)