Skip to content

Commit fcdb27a

Browse files
committed
[MIPS] Rename _machine_power_off to pm_power_off so the kernel builds again.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 9414d36 commit fcdb27a

30 files changed

Lines changed: 79 additions & 40 deletions

File tree

‎arch/mips/au1000/common/setup.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <linux/delay.h>
3434
#include <linux/interrupt.h>
3535
#include <linux/module.h>
36+
#include <linux/pm.h>
3637

3738
#include <asm/cpu.h>
3839
#include <asm/bootinfo.h>
@@ -125,7 +126,7 @@ void __init plat_setup(void)
125126
#endif
126127
_machine_restart = au1000_restart;
127128
_machine_halt = au1000_halt;
128-
_machine_power_off = au1000_power_off;
129+
pm_power_off = au1000_power_off;
129130
board_time_init = au1xxx_time_init;
130131
board_timer_setup = au1xxx_timer_setup;
131132

‎arch/mips/cobalt/setup.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
* License. See the file "COPYING" in the main directory of this archive
66
* for more details.
77
*
8-
* Copyright (C) 1996, 1997, 2004 by Ralf Baechle (ralf@linux-mips.org)
8+
* Copyright (C) 1996, 1997, 2004, 05 by Ralf Baechle (ralf@linux-mips.org)
99
* Copyright (C) 2001, 2002, 2003 by Liam Davies (ldavies@agile.tv)
1010
*
1111
*/
1212
#include <linux/config.h>
1313
#include <linux/interrupt.h>
1414
#include <linux/pci.h>
1515
#include <linux/init.h>
16+
#include <linux/pm.h>
1617
#include <linux/serial.h>
1718
#include <linux/serial_core.h>
1819

@@ -99,7 +100,7 @@ void __init plat_setup(void)
99100

100101
_machine_restart = cobalt_machine_restart;
101102
_machine_halt = cobalt_machine_halt;
102-
_machine_power_off = cobalt_machine_power_off;
103+
pm_power_off = cobalt_machine_power_off;
103104

104105
board_timer_setup = cobalt_timer_setup;
105106

‎arch/mips/ddb5xxx/ddb5074/setup.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/ide.h>
1515
#include <linux/ioport.h>
1616
#include <linux/irq.h>
17+
#include <linux/pm.h>
1718

1819
#include <asm/addrspace.h>
1920
#include <asm/bcache.h>
@@ -95,7 +96,7 @@ void __init plat_setup(void)
9596

9697
_machine_restart = ddb_machine_restart;
9798
_machine_halt = ddb_machine_halt;
98-
_machine_power_off = ddb_machine_power_off;
99+
pm_power_off = ddb_machine_power_off;
99100

100101
ddb_out32(DDB_BAR0, 0);
101102

‎arch/mips/ddb5xxx/ddb5476/setup.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/types.h>
1212
#include <linux/sched.h>
1313
#include <linux/pci.h>
14+
#include <linux/pm.h>
1415

1516
#include <asm/addrspace.h>
1617
#include <asm/bcache.h>
@@ -133,7 +134,7 @@ void __init plat_setup(void)
133134

134135
_machine_restart = ddb_machine_restart;
135136
_machine_halt = ddb_machine_halt;
136-
_machine_power_off = ddb_machine_power_off;
137+
pm_power_off = ddb_machine_power_off;
137138

138139
/* request io port/mem resources */
139140
if (request_resource(&ioport_resource, &ddb5476_ioport.dma1) ||

‎arch/mips/ddb5xxx/ddb5477/setup.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <linux/major.h>
2727
#include <linux/kdev_t.h>
2828
#include <linux/root_dev.h>
29+
#include <linux/pm.h>
2930

3031
#include <asm/cpu.h>
3132
#include <asm/bootinfo.h>
@@ -182,7 +183,7 @@ void __init plat_setup(void)
182183

183184
_machine_restart = ddb_machine_restart;
184185
_machine_halt = ddb_machine_halt;
185-
_machine_power_off = ddb_machine_power_off;
186+
pm_power_off = ddb_machine_power_off;
186187

187188
/* setup resource limits */
188189
ioport_resource.end = DDB_PCI0_IO_SIZE + DDB_PCI1_IO_SIZE - 1;

‎arch/mips/dec/setup.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/sched.h>
1818
#include <linux/spinlock.h>
1919
#include <linux/types.h>
20+
#include <linux/pm.h>
2021

2122
#include <asm/bootinfo.h>
2223
#include <asm/cpu.h>
@@ -158,7 +159,7 @@ void __init plat_setup(void)
158159

159160
_machine_restart = dec_machine_restart;
160161
_machine_halt = dec_machine_halt;
161-
_machine_power_off = dec_machine_power_off;
162+
pm_power_off = dec_machine_power_off;
162163

163164
ioport_resource.start = ~0UL;
164165
ioport_resource.end = 0UL;

‎arch/mips/gt64120/ev64120/setup.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#include <linux/interrupt.h>
3535
#include <linux/pci.h>
3636
#include <linux/timex.h>
37+
#include <linux/pm.h>
38+
3739
#include <asm/bootinfo.h>
3840
#include <asm/page.h>
3941
#include <asm/io.h>
@@ -73,7 +75,7 @@ void __init plat_setup(void)
7375
{
7476
_machine_restart = galileo_machine_restart;
7577
_machine_halt = galileo_machine_halt;
76-
_machine_power_off = galileo_machine_power_off;
78+
pm_power_off = galileo_machine_power_off;
7779

7880
board_time_init = gt64120_time_init;
7981
set_io_port_base(KSEG1);

‎arch/mips/gt64120/momenco_ocelot/setup.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BRIEF MODULE DESCRIPTION
55
* Momentum Computer Ocelot (CP7000) - board dependent boot routines
66
*
7-
* Copyright (C) 1996, 1997, 2001 Ralf Baechle
7+
* Copyright (C) 1996, 1997, 2001, 06 Ralf Baechle (ralf@linux-mips.org)
88
* Copyright (C) 2000 RidgeRun, Inc.
99
* Copyright (C) 2001 Red Hat, Inc.
1010
* Copyright (C) 2002 Momentum Computer
@@ -47,6 +47,8 @@
4747
#include <linux/pci.h>
4848
#include <linux/timex.h>
4949
#include <linux/vmalloc.h>
50+
#include <linux/pm.h>
51+
5052
#include <asm/time.h>
5153
#include <asm/bootinfo.h>
5254
#include <asm/page.h>
@@ -159,7 +161,7 @@ void __init plat_setup(void)
159161

160162
_machine_restart = momenco_ocelot_restart;
161163
_machine_halt = momenco_ocelot_halt;
162-
_machine_power_off = momenco_ocelot_power_off;
164+
pm_power_off = momenco_ocelot_power_off;
163165

164166
/*
165167
* initrd_start = (ulong)ocelot_initrd_start;

‎arch/mips/ite-boards/generic/it8172_setup.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <linux/major.h>
3535
#include <linux/kdev_t.h>
3636
#include <linux/root_dev.h>
37+
#include <linux/pm.h>
3738

3839
#include <asm/cpu.h>
3940
#include <asm/time.h>
@@ -125,7 +126,7 @@ void __init plat_setup(void)
125126

126127
_machine_restart = it8172_restart;
127128
_machine_halt = it8172_halt;
128-
_machine_power_off = it8172_power_off;
129+
pm_power_off = it8172_power_off;
129130

130131
/*
131132
* IO/MEM resources.

‎arch/mips/jazz/setup.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#include <linux/console.h>
2020
#include <linux/fb.h>
2121
#include <linux/ide.h>
22+
#include <linux/pm.h>
23+
2224
#include <asm/bootinfo.h>
2325
#include <asm/irq.h>
2426
#include <asm/jazz.h>
@@ -79,7 +81,7 @@ void __init plat_setup(void)
7981

8082
_machine_restart = jazz_machine_restart;
8183
_machine_halt = jazz_machine_halt;
82-
_machine_power_off = jazz_machine_power_off;
84+
pm_power_off = jazz_machine_power_off;
8385

8486
#warning "Somebody should check if screen_info is ok for Jazz."
8587

0 commit comments

Comments
 (0)