mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PARISC] Add chassis_power_off routine
Define a chassis_power_off routine that machines which have a way to turn off the power supply can hook into. Formerly they were using pm_power_off, which is now being used by generic code. Make lasi.c use chassis_power_off instead of pm_power_off. Note, all machines need to call machine_power_off so that the switch can power off the machine, though halt -p may not necessarily be able to work properly on the machine. Signed-off-by: Kyle McMartin <[email protected]>
This commit is contained in:
parent
526110f8c8
commit
85509c0007
2 changed files with 7 additions and 9 deletions
|
|
@ -166,6 +166,7 @@ static void lasi_power_off(void)
|
|||
int __init
|
||||
lasi_init_chip(struct parisc_device *dev)
|
||||
{
|
||||
extern void (*chassis_power_off)(void);
|
||||
struct gsc_asic *lasi;
|
||||
struct gsc_irq gsc_irq;
|
||||
int ret;
|
||||
|
|
@ -222,7 +223,7 @@ lasi_init_chip(struct parisc_device *dev)
|
|||
* ensure that only the first LASI (the one controlling the power off)
|
||||
* should set the HPA here */
|
||||
lasi_power_off_hpa = lasi->hpa;
|
||||
pm_power_off = lasi_power_off;
|
||||
chassis_power_off = lasi_power_off;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue