aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/parisc/kernel/process.c13
-rw-r--r--drivers/parisc/lasi.c3
2 files changed, 7 insertions, 9 deletions
diff --git a/arch/parisc/kernel/process.c b/arch/parisc/kernel/process.c
index 998700ce4556..e8dea4177113 100644
--- a/arch/parisc/kernel/process.c
+++ b/arch/parisc/kernel/process.c
@@ -54,12 +54,6 @@
54#include <asm/uaccess.h> 54#include <asm/uaccess.h>
55#include <asm/unwind.h> 55#include <asm/unwind.h>
56 56
57/*
58 * Power off function, if any
59 */
60void (*pm_power_off)(void);
61EXPORT_SYMBOL(pm_power_off);
62
63void default_idle(void) 57void default_idle(void)
64{ 58{
65 barrier(); 59 barrier();
@@ -142,6 +136,7 @@ void machine_halt(void)
142 */ 136 */
143} 137}
144 138
139void (*chassis_power_off)(void);
145 140
146/* 141/*
147 * This routine is called from sys_reboot to actually turn off the 142 * This routine is called from sys_reboot to actually turn off the
@@ -150,8 +145,8 @@ void machine_halt(void)
150void machine_power_off(void) 145void machine_power_off(void)
151{ 146{
152 /* If there is a registered power off handler, call it. */ 147 /* If there is a registered power off handler, call it. */
153 if(pm_power_off) 148 if (chassis_power_off)
154 pm_power_off(); 149 chassis_power_off();
155 150
156 /* Put the soft power button back under hardware control. 151 /* Put the soft power button back under hardware control.
157 * If the user had already pressed the power button, the 152 * If the user had already pressed the power button, the
@@ -167,6 +162,8 @@ void machine_power_off(void)
167 KERN_EMERG "Please power this system off now."); 162 KERN_EMERG "Please power this system off now.");
168} 163}
169 164
165void (*pm_power_off)(void) = machine_power_off;
166EXPORT_SYMBOL(pm_power_off);
170 167
171/* 168/*
172 * Create a kernel thread 169 * Create a kernel thread
diff --git a/drivers/parisc/lasi.c b/drivers/parisc/lasi.c
index d043a8a33511..cb3d28176129 100644
--- a/drivers/parisc/lasi.c
+++ b/drivers/parisc/lasi.c
@@ -166,6 +166,7 @@ static void lasi_power_off(void)
166int __init 166int __init
167lasi_init_chip(struct parisc_device *dev) 167lasi_init_chip(struct parisc_device *dev)
168{ 168{
169 extern void (*chassis_power_off)(void);
169 struct gsc_asic *lasi; 170 struct gsc_asic *lasi;
170 struct gsc_irq gsc_irq; 171 struct gsc_irq gsc_irq;
171 int ret; 172 int ret;
@@ -222,7 +223,7 @@ lasi_init_chip(struct parisc_device *dev)
222 * ensure that only the first LASI (the one controlling the power off) 223 * ensure that only the first LASI (the one controlling the power off)
223 * should set the HPA here */ 224 * should set the HPA here */
224 lasi_power_off_hpa = lasi->hpa; 225 lasi_power_off_hpa = lasi->hpa;
225 pm_power_off = lasi_power_off; 226 chassis_power_off = lasi_power_off;
226 227
227 return ret; 228 return ret;
228} 229}