aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-common
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-06 13:23:27 -0500
committerMike Frysinger <vapier@gentoo.org>2011-03-18 04:01:05 -0400
commit4f19ea4978cd0803e7a70558f9f3a2f5d7c51640 (patch)
tree1d97f48cb860cbe5dc506f1b54ace31b0d8d4421 /arch/blackfin/mach-common
parentb10bbbbce77ed45a3f5cb7e2bd1d3d5dbee20666 (diff)
Blackfin: convert core irq_chip to new functions
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-common')
-rw-r--r--arch/blackfin/mach-common/ints-priority.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/blackfin/mach-common/ints-priority.c b/arch/blackfin/mach-common/ints-priority.c
index 6e7db990bfae..c00915156f0c 100644
--- a/arch/blackfin/mach-common/ints-priority.c
+++ b/arch/blackfin/mach-common/ints-priority.c
@@ -124,21 +124,21 @@ static void __init search_IAR(void)
124 * This is for core internal IRQs 124 * This is for core internal IRQs
125 */ 125 */
126 126
127static void bfin_ack_noop(unsigned int irq) 127static void bfin_ack_noop(struct irq_data *d)
128{ 128{
129 /* Dummy function. */ 129 /* Dummy function. */
130} 130}
131 131
132static void bfin_core_mask_irq(unsigned int irq) 132static void bfin_core_mask_irq(struct irq_data *d)
133{ 133{
134 bfin_irq_flags &= ~(1 << irq); 134 bfin_irq_flags &= ~(1 << d->irq);
135 if (!hard_irqs_disabled()) 135 if (!hard_irqs_disabled())
136 hard_local_irq_enable(); 136 hard_local_irq_enable();
137} 137}
138 138
139static void bfin_core_unmask_irq(unsigned int irq) 139static void bfin_core_unmask_irq(struct irq_data *d)
140{ 140{
141 bfin_irq_flags |= 1 << irq; 141 bfin_irq_flags |= 1 << d->irq;
142 /* 142 /*
143 * If interrupts are enabled, IMASK must contain the same value 143 * If interrupts are enabled, IMASK must contain the same value
144 * as bfin_irq_flags. Make sure that invariant holds. If interrupts 144 * as bfin_irq_flags. Make sure that invariant holds. If interrupts
@@ -283,14 +283,14 @@ int bfin_internal_set_wake(unsigned int irq, unsigned int state)
283 283
284static struct irq_chip bfin_core_irqchip = { 284static struct irq_chip bfin_core_irqchip = {
285 .name = "CORE", 285 .name = "CORE",
286 .ack = bfin_ack_noop, 286 .irq_ack = bfin_ack_noop,
287 .mask = bfin_core_mask_irq, 287 .irq_mask = bfin_core_mask_irq,
288 .unmask = bfin_core_unmask_irq, 288 .irq_unmask = bfin_core_unmask_irq,
289}; 289};
290 290
291static struct irq_chip bfin_internal_irqchip = { 291static struct irq_chip bfin_internal_irqchip = {
292 .name = "INTN", 292 .name = "INTN",
293 .ack = bfin_ack_noop, 293 .irq_ack = bfin_ack_noop,
294 .mask = bfin_internal_mask_irq, 294 .mask = bfin_internal_mask_irq,
295 .unmask = bfin_internal_unmask_irq, 295 .unmask = bfin_internal_unmask_irq,
296 .mask_ack = bfin_internal_mask_irq, 296 .mask_ack = bfin_internal_mask_irq,
@@ -334,7 +334,7 @@ static void bfin_generic_error_unmask_irq(unsigned int irq)
334 334
335static struct irq_chip bfin_generic_error_irqchip = { 335static struct irq_chip bfin_generic_error_irqchip = {
336 .name = "ERROR", 336 .name = "ERROR",
337 .ack = bfin_ack_noop, 337 .irq_ack = bfin_ack_noop,
338 .mask_ack = bfin_generic_error_mask_irq, 338 .mask_ack = bfin_generic_error_mask_irq,
339 .mask = bfin_generic_error_mask_irq, 339 .mask = bfin_generic_error_mask_irq,
340 .unmask = bfin_generic_error_unmask_irq, 340 .unmask = bfin_generic_error_unmask_irq,
@@ -495,7 +495,7 @@ int bfin_mac_status_set_wake(unsigned int irq, unsigned int state)
495 495
496static struct irq_chip bfin_mac_status_irqchip = { 496static struct irq_chip bfin_mac_status_irqchip = {
497 .name = "MACST", 497 .name = "MACST",
498 .ack = bfin_ack_noop, 498 .irq_ack = bfin_ack_noop,
499 .mask_ack = bfin_mac_status_mask_irq, 499 .mask_ack = bfin_mac_status_mask_irq,
500 .mask = bfin_mac_status_mask_irq, 500 .mask = bfin_mac_status_mask_irq,
501 .unmask = bfin_mac_status_unmask_irq, 501 .unmask = bfin_mac_status_unmask_irq,