diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-07-01 22:29:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-02 16:58:48 -0400 |
commit | 6741320247fbf147ab8aa41b2a7201425ac1e1df (patch) | |
tree | 6ef3e87744af4ecf77f969eb7de0e7d54a25eb73 /arch/sparc/kernel/irq.c | |
parent | d356d7f4f2761b1391ec41404eefe280e4f11f76 (diff) |
[PATCH] irq-flags: SPARC: Use the new IRQF_ constants
Use the new IRQF_ constants and remove the SA_INTERRUPT define
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/sparc/kernel/irq.c')
-rw-r--r-- | arch/sparc/kernel/irq.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/sparc/kernel/irq.c b/arch/sparc/kernel/irq.c index b81af076ef48..cde73327ca96 100644 --- a/arch/sparc/kernel/irq.c +++ b/arch/sparc/kernel/irq.c | |||
@@ -191,11 +191,11 @@ int show_interrupts(struct seq_file *p, void *v) | |||
191 | } | 191 | } |
192 | #endif | 192 | #endif |
193 | seq_printf(p, " %c %s", | 193 | seq_printf(p, " %c %s", |
194 | (action->flags & SA_INTERRUPT) ? '+' : ' ', | 194 | (action->flags & IRQF_DISABLED) ? '+' : ' ', |
195 | action->name); | 195 | action->name); |
196 | for (action=action->next; action; action = action->next) { | 196 | for (action=action->next; action; action = action->next) { |
197 | seq_printf(p, ",%s %s", | 197 | seq_printf(p, ",%s %s", |
198 | (action->flags & SA_INTERRUPT) ? " +" : "", | 198 | (action->flags & IRQF_DISABLED) ? " +" : "", |
199 | action->name); | 199 | action->name); |
200 | } | 200 | } |
201 | seq_putc(p, '\n'); | 201 | seq_putc(p, '\n'); |
@@ -243,7 +243,7 @@ void free_irq(unsigned int irq, void *dev_id) | |||
243 | printk("Trying to free free shared IRQ%d\n",irq); | 243 | printk("Trying to free free shared IRQ%d\n",irq); |
244 | goto out_unlock; | 244 | goto out_unlock; |
245 | } | 245 | } |
246 | } else if (action->flags & SA_SHIRQ) { | 246 | } else if (action->flags & IRQF_SHARED) { |
247 | printk("Trying to free shared IRQ%d with NULL device ID\n", irq); | 247 | printk("Trying to free shared IRQ%d with NULL device ID\n", irq); |
248 | goto out_unlock; | 248 | goto out_unlock; |
249 | } | 249 | } |
@@ -395,9 +395,9 @@ int request_fast_irq(unsigned int irq, | |||
395 | 395 | ||
396 | action = sparc_irq[cpu_irq].action; | 396 | action = sparc_irq[cpu_irq].action; |
397 | if(action) { | 397 | if(action) { |
398 | if(action->flags & SA_SHIRQ) | 398 | if(action->flags & IRQF_SHARED) |
399 | panic("Trying to register fast irq when already shared.\n"); | 399 | panic("Trying to register fast irq when already shared.\n"); |
400 | if(irqflags & SA_SHIRQ) | 400 | if(irqflags & IRQF_SHARED) |
401 | panic("Trying to register fast irq as shared.\n"); | 401 | panic("Trying to register fast irq as shared.\n"); |
402 | 402 | ||
403 | /* Anyway, someone already owns it so cannot be made fast. */ | 403 | /* Anyway, someone already owns it so cannot be made fast. */ |
@@ -497,11 +497,11 @@ int request_irq(unsigned int irq, | |||
497 | actionp = &sparc_irq[cpu_irq].action; | 497 | actionp = &sparc_irq[cpu_irq].action; |
498 | action = *actionp; | 498 | action = *actionp; |
499 | if (action) { | 499 | if (action) { |
500 | if (!(action->flags & SA_SHIRQ) || !(irqflags & SA_SHIRQ)) { | 500 | if (!(action->flags & IRQF_SHARED) || !(irqflags & IRQF_SHARED)) { |
501 | ret = -EBUSY; | 501 | ret = -EBUSY; |
502 | goto out_unlock; | 502 | goto out_unlock; |
503 | } | 503 | } |
504 | if ((action->flags & SA_INTERRUPT) != (irqflags & SA_INTERRUPT)) { | 504 | if ((action->flags & IRQF_DISABLED) != (irqflags & IRQF_DISABLED)) { |
505 | printk("Attempt to mix fast and slow interrupts on IRQ%d denied\n", irq); | 505 | printk("Attempt to mix fast and slow interrupts on IRQ%d denied\n", irq); |
506 | ret = -EBUSY; | 506 | ret = -EBUSY; |
507 | goto out_unlock; | 507 | goto out_unlock; |