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/sun4d_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/sun4d_irq.c')
-rw-r--r-- | arch/sparc/kernel/sun4d_irq.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/sparc/kernel/sun4d_irq.c b/arch/sparc/kernel/sun4d_irq.c index cbf8ee81cf5b..74eed9775ac0 100644 --- a/arch/sparc/kernel/sun4d_irq.c +++ b/arch/sparc/kernel/sun4d_irq.c | |||
@@ -107,13 +107,13 @@ found_it: seq_printf(p, "%3d: ", i); | |||
107 | kstat_cpu(cpu_logical_map(x)).irqs[i]); | 107 | kstat_cpu(cpu_logical_map(x)).irqs[i]); |
108 | #endif | 108 | #endif |
109 | seq_printf(p, "%c %s", | 109 | seq_printf(p, "%c %s", |
110 | (action->flags & SA_INTERRUPT) ? '+' : ' ', | 110 | (action->flags & IRQF_DISABLED) ? '+' : ' ', |
111 | action->name); | 111 | action->name); |
112 | action = action->next; | 112 | action = action->next; |
113 | for (;;) { | 113 | for (;;) { |
114 | for (; action; action = action->next) { | 114 | for (; action; action = action->next) { |
115 | seq_printf(p, ",%s %s", | 115 | seq_printf(p, ",%s %s", |
116 | (action->flags & SA_INTERRUPT) ? " +" : "", | 116 | (action->flags & IRQF_DISABLED) ? " +" : "", |
117 | action->name); | 117 | action->name); |
118 | } | 118 | } |
119 | if (!sbusl) break; | 119 | if (!sbusl) break; |
@@ -160,7 +160,7 @@ void sun4d_free_irq(unsigned int irq, void *dev_id) | |||
160 | printk("Trying to free free shared IRQ%d\n",irq); | 160 | printk("Trying to free free shared IRQ%d\n",irq); |
161 | goto out_unlock; | 161 | goto out_unlock; |
162 | } | 162 | } |
163 | } else if (action->flags & SA_SHIRQ) { | 163 | } else if (action->flags & IRQF_SHARED) { |
164 | printk("Trying to free shared IRQ%d with NULL device ID\n", irq); | 164 | printk("Trying to free shared IRQ%d with NULL device ID\n", irq); |
165 | goto out_unlock; | 165 | goto out_unlock; |
166 | } | 166 | } |
@@ -298,13 +298,13 @@ int sun4d_request_irq(unsigned int irq, | |||
298 | action = *actionp; | 298 | action = *actionp; |
299 | 299 | ||
300 | if (action) { | 300 | if (action) { |
301 | if ((action->flags & SA_SHIRQ) && (irqflags & SA_SHIRQ)) { | 301 | if ((action->flags & IRQF_SHARED) && (irqflags & IRQF_SHARED)) { |
302 | for (tmp = action; tmp->next; tmp = tmp->next); | 302 | for (tmp = action; tmp->next; tmp = tmp->next); |
303 | } else { | 303 | } else { |
304 | ret = -EBUSY; | 304 | ret = -EBUSY; |
305 | goto out_unlock; | 305 | goto out_unlock; |
306 | } | 306 | } |
307 | if ((action->flags & SA_INTERRUPT) ^ (irqflags & SA_INTERRUPT)) { | 307 | if ((action->flags & IRQF_DISABLED) ^ (irqflags & IRQF_DISABLED)) { |
308 | printk("Attempt to mix fast and slow interrupts on IRQ%d denied\n", irq); | 308 | printk("Attempt to mix fast and slow interrupts on IRQ%d denied\n", irq); |
309 | ret = -EBUSY; | 309 | ret = -EBUSY; |
310 | goto out_unlock; | 310 | goto out_unlock; |
@@ -490,7 +490,7 @@ static void __init sun4d_init_timers(irqreturn_t (*counter_fn)(int, void *, stru | |||
490 | 490 | ||
491 | irq = request_irq(TIMER_IRQ, | 491 | irq = request_irq(TIMER_IRQ, |
492 | counter_fn, | 492 | counter_fn, |
493 | (SA_INTERRUPT | SA_STATIC_ALLOC), | 493 | (IRQF_DISABLED | SA_STATIC_ALLOC), |
494 | "timer", NULL); | 494 | "timer", NULL); |
495 | if (irq) { | 495 | if (irq) { |
496 | prom_printf("time_init: unable to attach IRQ%d\n",TIMER_IRQ); | 496 | prom_printf("time_init: unable to attach IRQ%d\n",TIMER_IRQ); |