diff options
author | 2010-10-14 22:31:25 -0400 | |
---|---|---|
committer | 2011-01-17 05:42:12 +0100 | |
commit | a891b393dd7f6ed84ecee98c0eac4a808ff2cbbc (patch) | |
tree | ab4ee31ef54691f492e77dfc2d937f62c055cb1a /arch/alpha/kernel/irq_i8259.c | |
parent | alpha: use set_irq_chip and push down __do_IRQ to the machine types (diff) | |
download | linux-a891b393dd7f6ed84ecee98c0eac4a808ff2cbbc.tar.gz linux-a891b393dd7f6ed84ecee98c0eac4a808ff2cbbc.tar.bz2 linux-a891b393dd7f6ed84ecee98c0eac4a808ff2cbbc.zip |
alpha: irq clean up
Stop touching irq_desc[irq] directly, instead use accessor
functions provided. Use irq_has_action instead of directly
testing the irq_desc.
Tested-by: Michael Cree <mcree@orcon.net.nz>
Signed-off-by: Kyle McMartin <kyle@redhat.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch/alpha/kernel/irq_i8259.c')
-rw-r--r-- | arch/alpha/kernel/irq_i8259.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/alpha/kernel/irq_i8259.c b/arch/alpha/kernel/irq_i8259.c index 39299fbb637c..9e493958895d 100644 --- a/arch/alpha/kernel/irq_i8259.c +++ b/arch/alpha/kernel/irq_i8259.c @@ -79,7 +79,8 @@ i8259a_startup_irq(unsigned int irq) void i8259a_end_irq(unsigned int irq) { - if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS))) + struct irq_desc *desc = irq_to_desc(irq); + if (desc || !(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS))) i8259a_enable_irq(irq); } |