diff options
Diffstat (limited to 'arch/ppc/syslib')
-rw-r--r-- | arch/ppc/syslib/cpc700_pic.c | 12 | ||||
-rw-r--r-- | arch/ppc/syslib/i8259.c | 13 | ||||
-rw-r--r-- | arch/ppc/syslib/ibm440gx_common.c | 7 | ||||
-rw-r--r-- | arch/ppc/syslib/mpc10x_common.c | 4 | ||||
-rw-r--r-- | arch/ppc/syslib/mpc83xx_devices.c | 2 | ||||
-rw-r--r-- | arch/ppc/syslib/mpc85xx_devices.c | 2 | ||||
-rw-r--r-- | arch/ppc/syslib/mv64x60.c | 2 | ||||
-rw-r--r-- | arch/ppc/syslib/open_pic2.c | 12 | ||||
-rw-r--r-- | arch/ppc/syslib/ppc403_pic.c | 11 | ||||
-rw-r--r-- | arch/ppc/syslib/qspan_pci.c | 2 | ||||
-rw-r--r-- | arch/ppc/syslib/xilinx_pic.c | 13 |
11 files changed, 33 insertions, 47 deletions
diff --git a/arch/ppc/syslib/cpc700_pic.c b/arch/ppc/syslib/cpc700_pic.c index 774709807538..75fe8eb10693 100644 --- a/arch/ppc/syslib/cpc700_pic.c +++ b/arch/ppc/syslib/cpc700_pic.c | |||
@@ -90,14 +90,10 @@ cpc700_mask_and_ack_irq(unsigned int irq) | |||
90 | } | 90 | } |
91 | 91 | ||
92 | static struct hw_interrupt_type cpc700_pic = { | 92 | static struct hw_interrupt_type cpc700_pic = { |
93 | "CPC700 PIC", | 93 | .typename = "CPC700 PIC", |
94 | NULL, | 94 | .enable = cpc700_unmask_irq, |
95 | NULL, | 95 | .disable = cpc700_mask_irq, |
96 | cpc700_unmask_irq, | 96 | .ack = cpc700_mask_and_ack_irq, |
97 | cpc700_mask_irq, | ||
98 | cpc700_mask_and_ack_irq, | ||
99 | NULL, | ||
100 | NULL | ||
101 | }; | 97 | }; |
102 | 98 | ||
103 | __init static void | 99 | __init static void |
diff --git a/arch/ppc/syslib/i8259.c b/arch/ppc/syslib/i8259.c index b9391e650141..5c7908c20e43 100644 --- a/arch/ppc/syslib/i8259.c +++ b/arch/ppc/syslib/i8259.c | |||
@@ -129,14 +129,11 @@ static void i8259_end_irq(unsigned int irq) | |||
129 | } | 129 | } |
130 | 130 | ||
131 | struct hw_interrupt_type i8259_pic = { | 131 | struct hw_interrupt_type i8259_pic = { |
132 | " i8259 ", | 132 | .typename = " i8259 ", |
133 | NULL, | 133 | .enable = i8259_unmask_irq, |
134 | NULL, | 134 | .disable = i8259_mask_irq, |
135 | i8259_unmask_irq, | 135 | .ack = i8259_mask_and_ack_irq, |
136 | i8259_mask_irq, | 136 | .end = i8259_end_irq, |
137 | i8259_mask_and_ack_irq, | ||
138 | i8259_end_irq, | ||
139 | NULL | ||
140 | }; | 137 | }; |
141 | 138 | ||
142 | static struct resource pic1_iores = { | 139 | static struct resource pic1_iores = { |
diff --git a/arch/ppc/syslib/ibm440gx_common.c b/arch/ppc/syslib/ibm440gx_common.c index d4776af6a3ca..0bb919859b8b 100644 --- a/arch/ppc/syslib/ibm440gx_common.c +++ b/arch/ppc/syslib/ibm440gx_common.c | |||
@@ -236,9 +236,10 @@ void __init ibm440gx_l2c_setup(struct ibm44x_clocks* p) | |||
236 | /* Disable L2C on rev.A, rev.B and 800MHz version of rev.C, | 236 | /* Disable L2C on rev.A, rev.B and 800MHz version of rev.C, |
237 | enable it on all other revisions | 237 | enable it on all other revisions |
238 | */ | 238 | */ |
239 | u32 pvr = mfspr(SPRN_PVR); | 239 | if (strcmp(cur_cpu_spec[0]->cpu_name, "440GX Rev. A") == 0 || |
240 | if (pvr == PVR_440GX_RA || pvr == PVR_440GX_RB || | 240 | strcmp(cur_cpu_spec[0]->cpu_name, "440GX Rev. B") == 0 |
241 | (pvr == PVR_440GX_RC && p->cpu > 667000000)) | 241 | || (strcmp(cur_cpu_spec[0]->cpu_name, "440GX Rev. C") |
242 | == 0 && p->cpu > 667000000)) | ||
242 | ibm440gx_l2c_disable(); | 243 | ibm440gx_l2c_disable(); |
243 | else | 244 | else |
244 | ibm440gx_l2c_enable(); | 245 | ibm440gx_l2c_enable(); |
diff --git a/arch/ppc/syslib/mpc10x_common.c b/arch/ppc/syslib/mpc10x_common.c index 87065e2e4c5f..3e039706bdbc 100644 --- a/arch/ppc/syslib/mpc10x_common.c +++ b/arch/ppc/syslib/mpc10x_common.c | |||
@@ -140,12 +140,12 @@ struct platform_device ppc_sys_platform_devices[] = { | |||
140 | }, | 140 | }, |
141 | [MPC10X_UART0] = { | 141 | [MPC10X_UART0] = { |
142 | .name = "serial8250", | 142 | .name = "serial8250", |
143 | .id = 0, | 143 | .id = PLAT8250_DEV_PLATFORM, |
144 | .dev.platform_data = serial_plat_uart0, | 144 | .dev.platform_data = serial_plat_uart0, |
145 | }, | 145 | }, |
146 | [MPC10X_UART1] = { | 146 | [MPC10X_UART1] = { |
147 | .name = "serial8250", | 147 | .name = "serial8250", |
148 | .id = 1, | 148 | .id = PLAT8250_DEV_PLATFORM1, |
149 | .dev.platform_data = serial_plat_uart1, | 149 | .dev.platform_data = serial_plat_uart1, |
150 | }, | 150 | }, |
151 | 151 | ||
diff --git a/arch/ppc/syslib/mpc83xx_devices.c b/arch/ppc/syslib/mpc83xx_devices.c index 5aaf0e58e1f9..95b3b8a7f0ba 100644 --- a/arch/ppc/syslib/mpc83xx_devices.c +++ b/arch/ppc/syslib/mpc83xx_devices.c | |||
@@ -165,7 +165,7 @@ struct platform_device ppc_sys_platform_devices[] = { | |||
165 | }, | 165 | }, |
166 | [MPC83xx_DUART] = { | 166 | [MPC83xx_DUART] = { |
167 | .name = "serial8250", | 167 | .name = "serial8250", |
168 | .id = 0, | 168 | .id = PLAT8250_DEV_PLATFORM, |
169 | .dev.platform_data = serial_platform_data, | 169 | .dev.platform_data = serial_platform_data, |
170 | }, | 170 | }, |
171 | [MPC83xx_SEC2] = { | 171 | [MPC83xx_SEC2] = { |
diff --git a/arch/ppc/syslib/mpc85xx_devices.c b/arch/ppc/syslib/mpc85xx_devices.c index 8af322dd476a..bbc5ac0de878 100644 --- a/arch/ppc/syslib/mpc85xx_devices.c +++ b/arch/ppc/syslib/mpc85xx_devices.c | |||
@@ -282,7 +282,7 @@ struct platform_device ppc_sys_platform_devices[] = { | |||
282 | }, | 282 | }, |
283 | [MPC85xx_DUART] = { | 283 | [MPC85xx_DUART] = { |
284 | .name = "serial8250", | 284 | .name = "serial8250", |
285 | .id = 0, | 285 | .id = PLAT8250_DEV_PLATFORM, |
286 | .dev.platform_data = serial_platform_data, | 286 | .dev.platform_data = serial_platform_data, |
287 | }, | 287 | }, |
288 | [MPC85xx_PERFMON] = { | 288 | [MPC85xx_PERFMON] = { |
diff --git a/arch/ppc/syslib/mv64x60.c b/arch/ppc/syslib/mv64x60.c index 6262b11f366f..839f8872826f 100644 --- a/arch/ppc/syslib/mv64x60.c +++ b/arch/ppc/syslib/mv64x60.c | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | 32 | ||
33 | u8 mv64x60_pci_exclude_bridge = 1; | 33 | u8 mv64x60_pci_exclude_bridge = 1; |
34 | spinlock_t mv64x60_lock = SPIN_LOCK_UNLOCKED; | 34 | DEFINE_SPINLOCK(mv64x60_lock); |
35 | 35 | ||
36 | static phys_addr_t mv64x60_bridge_pbase; | 36 | static phys_addr_t mv64x60_bridge_pbase; |
37 | static void *mv64x60_bridge_vbase; | 37 | static void *mv64x60_bridge_vbase; |
diff --git a/arch/ppc/syslib/open_pic2.c b/arch/ppc/syslib/open_pic2.c index 7e272c51a497..2e0ea92144f6 100644 --- a/arch/ppc/syslib/open_pic2.c +++ b/arch/ppc/syslib/open_pic2.c | |||
@@ -82,13 +82,11 @@ static void openpic2_end_irq(unsigned int irq_nr); | |||
82 | static void openpic2_ack_irq(unsigned int irq_nr); | 82 | static void openpic2_ack_irq(unsigned int irq_nr); |
83 | 83 | ||
84 | struct hw_interrupt_type open_pic2 = { | 84 | struct hw_interrupt_type open_pic2 = { |
85 | " OpenPIC2 ", | 85 | .typename = " OpenPIC2 ", |
86 | NULL, | 86 | .enable = openpic2_enable_irq, |
87 | NULL, | 87 | .disable = openpic2_disable_irq, |
88 | openpic2_enable_irq, | 88 | .ack = openpic2_ack_irq, |
89 | openpic2_disable_irq, | 89 | .end = openpic2_end_irq, |
90 | openpic2_ack_irq, | ||
91 | openpic2_end_irq, | ||
92 | }; | 90 | }; |
93 | 91 | ||
94 | /* | 92 | /* |
diff --git a/arch/ppc/syslib/ppc403_pic.c b/arch/ppc/syslib/ppc403_pic.c index 06cb0af2a58d..ce4d1deb86e9 100644 --- a/arch/ppc/syslib/ppc403_pic.c +++ b/arch/ppc/syslib/ppc403_pic.c | |||
@@ -34,13 +34,10 @@ static void ppc403_aic_disable(unsigned int irq); | |||
34 | static void ppc403_aic_disable_and_ack(unsigned int irq); | 34 | static void ppc403_aic_disable_and_ack(unsigned int irq); |
35 | 35 | ||
36 | static struct hw_interrupt_type ppc403_aic = { | 36 | static struct hw_interrupt_type ppc403_aic = { |
37 | "403GC AIC", | 37 | .typename = "403GC AIC", |
38 | NULL, | 38 | .enable = ppc403_aic_enable, |
39 | NULL, | 39 | .disable = ppc403_aic_disable, |
40 | ppc403_aic_enable, | 40 | .ack = ppc403_aic_disable_and_ack, |
41 | ppc403_aic_disable, | ||
42 | ppc403_aic_disable_and_ack, | ||
43 | 0 | ||
44 | }; | 41 | }; |
45 | 42 | ||
46 | int | 43 | int |
diff --git a/arch/ppc/syslib/qspan_pci.c b/arch/ppc/syslib/qspan_pci.c index 57f4ed5e5ae1..0970b5d30391 100644 --- a/arch/ppc/syslib/qspan_pci.c +++ b/arch/ppc/syslib/qspan_pci.c | |||
@@ -94,7 +94,7 @@ | |||
94 | #define mk_config_type1(bus, dev, offset) \ | 94 | #define mk_config_type1(bus, dev, offset) \ |
95 | mk_config_addr(bus, dev, offset) | 1; | 95 | mk_config_addr(bus, dev, offset) | 1; |
96 | 96 | ||
97 | static spinlock_t pcibios_lock = SPIN_LOCK_UNLOCKED; | 97 | static DEFINE_SPINLOCK(pcibios_lock); |
98 | 98 | ||
99 | int qspan_pcibios_read_config_byte(unsigned char bus, unsigned char dev_fn, | 99 | int qspan_pcibios_read_config_byte(unsigned char bus, unsigned char dev_fn, |
100 | unsigned char offset, unsigned char *val) | 100 | unsigned char offset, unsigned char *val) |
diff --git a/arch/ppc/syslib/xilinx_pic.c b/arch/ppc/syslib/xilinx_pic.c index e0bd66f0847a..2cbcad278cef 100644 --- a/arch/ppc/syslib/xilinx_pic.c +++ b/arch/ppc/syslib/xilinx_pic.c | |||
@@ -79,14 +79,11 @@ xilinx_intc_end(unsigned int irq) | |||
79 | } | 79 | } |
80 | 80 | ||
81 | static struct hw_interrupt_type xilinx_intc = { | 81 | static struct hw_interrupt_type xilinx_intc = { |
82 | "Xilinx Interrupt Controller", | 82 | .typename = "Xilinx Interrupt Controller", |
83 | NULL, | 83 | .enable = xilinx_intc_enable, |
84 | NULL, | 84 | .disable = xilinx_intc_disable, |
85 | xilinx_intc_enable, | 85 | .ack = xilinx_intc_disable_and_ack, |
86 | xilinx_intc_disable, | 86 | .end = xilinx_intc_end, |
87 | xilinx_intc_disable_and_ack, | ||
88 | xilinx_intc_end, | ||
89 | 0 | ||
90 | }; | 87 | }; |
91 | 88 | ||
92 | int | 89 | int |