diff options
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r-- | arch/arm/mach-integrator/core.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-integrator/pci_v3.c | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm/mach-integrator/core.c b/arch/arm/mach-integrator/core.c index 77315b995681..0c20cf638575 100644 --- a/arch/arm/mach-integrator/core.c +++ b/arch/arm/mach-integrator/core.c | |||
@@ -205,7 +205,7 @@ static struct amba_pl010_data integrator_uart_data = { | |||
205 | 205 | ||
206 | #define CM_CTRL IO_ADDRESS(INTEGRATOR_HDR_CTRL) | 206 | #define CM_CTRL IO_ADDRESS(INTEGRATOR_HDR_CTRL) |
207 | 207 | ||
208 | static DEFINE_SPINLOCK(cm_lock); | 208 | static DEFINE_RAW_SPINLOCK(cm_lock); |
209 | 209 | ||
210 | /** | 210 | /** |
211 | * cm_control - update the CM_CTRL register. | 211 | * cm_control - update the CM_CTRL register. |
@@ -217,10 +217,10 @@ void cm_control(u32 mask, u32 set) | |||
217 | unsigned long flags; | 217 | unsigned long flags; |
218 | u32 val; | 218 | u32 val; |
219 | 219 | ||
220 | spin_lock_irqsave(&cm_lock, flags); | 220 | raw_spin_lock_irqsave(&cm_lock, flags); |
221 | val = readl(CM_CTRL) & ~mask; | 221 | val = readl(CM_CTRL) & ~mask; |
222 | writel(val | set, CM_CTRL); | 222 | writel(val | set, CM_CTRL); |
223 | spin_unlock_irqrestore(&cm_lock, flags); | 223 | raw_spin_unlock_irqrestore(&cm_lock, flags); |
224 | } | 224 | } |
225 | 225 | ||
226 | EXPORT_SYMBOL(cm_control); | 226 | EXPORT_SYMBOL(cm_control); |
diff --git a/arch/arm/mach-integrator/pci_v3.c b/arch/arm/mach-integrator/pci_v3.c index dd56bfb351e3..56c30622d239 100644 --- a/arch/arm/mach-integrator/pci_v3.c +++ b/arch/arm/mach-integrator/pci_v3.c | |||
@@ -164,7 +164,7 @@ | |||
164 | * 7:2 register number | 164 | * 7:2 register number |
165 | * | 165 | * |
166 | */ | 166 | */ |
167 | static DEFINE_SPINLOCK(v3_lock); | 167 | static DEFINE_RAW_SPINLOCK(v3_lock); |
168 | 168 | ||
169 | #define PCI_BUS_NONMEM_START 0x00000000 | 169 | #define PCI_BUS_NONMEM_START 0x00000000 |
170 | #define PCI_BUS_NONMEM_SIZE SZ_256M | 170 | #define PCI_BUS_NONMEM_SIZE SZ_256M |
@@ -285,7 +285,7 @@ static int v3_read_config(struct pci_bus *bus, unsigned int devfn, int where, | |||
285 | unsigned long flags; | 285 | unsigned long flags; |
286 | u32 v; | 286 | u32 v; |
287 | 287 | ||
288 | spin_lock_irqsave(&v3_lock, flags); | 288 | raw_spin_lock_irqsave(&v3_lock, flags); |
289 | addr = v3_open_config_window(bus, devfn, where); | 289 | addr = v3_open_config_window(bus, devfn, where); |
290 | 290 | ||
291 | switch (size) { | 291 | switch (size) { |
@@ -303,7 +303,7 @@ static int v3_read_config(struct pci_bus *bus, unsigned int devfn, int where, | |||
303 | } | 303 | } |
304 | 304 | ||
305 | v3_close_config_window(); | 305 | v3_close_config_window(); |
306 | spin_unlock_irqrestore(&v3_lock, flags); | 306 | raw_spin_unlock_irqrestore(&v3_lock, flags); |
307 | 307 | ||
308 | *val = v; | 308 | *val = v; |
309 | return PCIBIOS_SUCCESSFUL; | 309 | return PCIBIOS_SUCCESSFUL; |
@@ -315,7 +315,7 @@ static int v3_write_config(struct pci_bus *bus, unsigned int devfn, int where, | |||
315 | unsigned long addr; | 315 | unsigned long addr; |
316 | unsigned long flags; | 316 | unsigned long flags; |
317 | 317 | ||
318 | spin_lock_irqsave(&v3_lock, flags); | 318 | raw_spin_lock_irqsave(&v3_lock, flags); |
319 | addr = v3_open_config_window(bus, devfn, where); | 319 | addr = v3_open_config_window(bus, devfn, where); |
320 | 320 | ||
321 | switch (size) { | 321 | switch (size) { |
@@ -336,7 +336,7 @@ static int v3_write_config(struct pci_bus *bus, unsigned int devfn, int where, | |||
336 | } | 336 | } |
337 | 337 | ||
338 | v3_close_config_window(); | 338 | v3_close_config_window(); |
339 | spin_unlock_irqrestore(&v3_lock, flags); | 339 | raw_spin_unlock_irqrestore(&v3_lock, flags); |
340 | 340 | ||
341 | return PCIBIOS_SUCCESSFUL; | 341 | return PCIBIOS_SUCCESSFUL; |
342 | } | 342 | } |
@@ -515,7 +515,7 @@ void __init pci_v3_preinit(void) | |||
515 | hook_fault_code(8, v3_pci_fault, SIGBUS, 0, "external abort on non-linefetch"); | 515 | hook_fault_code(8, v3_pci_fault, SIGBUS, 0, "external abort on non-linefetch"); |
516 | hook_fault_code(10, v3_pci_fault, SIGBUS, 0, "external abort on non-linefetch"); | 516 | hook_fault_code(10, v3_pci_fault, SIGBUS, 0, "external abort on non-linefetch"); |
517 | 517 | ||
518 | spin_lock_irqsave(&v3_lock, flags); | 518 | raw_spin_lock_irqsave(&v3_lock, flags); |
519 | 519 | ||
520 | /* | 520 | /* |
521 | * Unlock V3 registers, but only if they were previously locked. | 521 | * Unlock V3 registers, but only if they were previously locked. |
@@ -588,7 +588,7 @@ void __init pci_v3_preinit(void) | |||
588 | printk(KERN_ERR "PCI: unable to grab PCI error " | 588 | printk(KERN_ERR "PCI: unable to grab PCI error " |
589 | "interrupt: %d\n", ret); | 589 | "interrupt: %d\n", ret); |
590 | 590 | ||
591 | spin_unlock_irqrestore(&v3_lock, flags); | 591 | raw_spin_unlock_irqrestore(&v3_lock, flags); |
592 | } | 592 | } |
593 | 593 | ||
594 | void __init pci_v3_postinit(void) | 594 | void __init pci_v3_postinit(void) |