From: Mark A. Greer <[EMAIL PROTECTED]>

Drivers should call machine_power_off() not pm_power_off to power off
a machine.

Signed-off-by: Mark A. Greer <[EMAIL PROTECTED]>
---
 drivers/parisc/power.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/parisc/power.c b/drivers/parisc/power.c
index 90cca5e..188a1ac 100644
--- a/drivers/parisc/power.c
+++ b/drivers/parisc/power.c
@@ -93,11 +93,9 @@ static void process_shutdown(void)
                lcd_print(msg);
 
                /* send kill signal */
-               if (kill_cad_pid(SIGINT, 1)) {
+               if (kill_cad_pid(SIGINT, 1))
                        /* just in case killing init process failed */
-                       if (pm_power_off)
-                               pm_power_off();
-               }
+                       machine_power_off();
        }
 }
 
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to