diff options
author | Kyle McMartin <kyle@redhat.com> | 2010-10-14 22:31:25 -0400 |
---|---|---|
committer | Matt Turner <mattst88@monolith.freenet-rz.de> | 2011-01-16 23:42:12 -0500 |
commit | a891b393dd7f6ed84ecee98c0eac4a808ff2cbbc (patch) | |
tree | ab4ee31ef54691f492e77dfc2d937f62c055cb1a /arch/alpha/kernel/sys_wildfire.c | |
parent | d5ccde0a64c3dbe954a8a13a6ba9fb3b6d7c6225 (diff) |
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/sys_wildfire.c')
-rw-r--r-- | arch/alpha/kernel/sys_wildfire.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/alpha/kernel/sys_wildfire.c b/arch/alpha/kernel/sys_wildfire.c index ea86103f53c3..f6004f05f502 100644 --- a/arch/alpha/kernel/sys_wildfire.c +++ b/arch/alpha/kernel/sys_wildfire.c | |||
@@ -150,10 +150,10 @@ static void | |||
150 | wildfire_end_irq(unsigned int irq) | 150 | wildfire_end_irq(unsigned int irq) |
151 | { | 151 | { |
152 | #if 0 | 152 | #if 0 |
153 | if (!irq_desc[irq].action) | 153 | if (!irq_has_action(irq)) |
154 | printk("got irq %d\n", irq); | 154 | printk("got irq %d\n", irq); |
155 | #endif | 155 | #endif |
156 | if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS))) | 156 | if (!(irq_to_desc(irq)->status & (IRQ_DISABLED|IRQ_INPROGRESS))) |
157 | wildfire_enable_irq(irq); | 157 | wildfire_enable_irq(irq); |
158 | } | 158 | } |
159 | 159 | ||
@@ -198,15 +198,15 @@ wildfire_init_irq_per_pca(int qbbno, int pcano) | |||
198 | for (i = 0; i < 16; ++i) { | 198 | for (i = 0; i < 16; ++i) { |
199 | if (i == 2) | 199 | if (i == 2) |
200 | continue; | 200 | continue; |
201 | irq_desc[i+irq_bias].status |= IRQ_LEVEL; | 201 | irq_to_desc(i+irq_bias)->status |= IRQ_LEVEL; |
202 | set_irq_chip_and_handler(i+irq_bias, &wildfire_irq_type, | 202 | set_irq_chip_and_handler(i+irq_bias, &wildfire_irq_type, |
203 | alpha_do_IRQ); | 203 | alpha_do_IRQ); |
204 | } | 204 | } |
205 | 205 | ||
206 | irq_desc[36+irq_bias].status |= IRQ_LEVEL; | 206 | irq_to_desc(36+irq_bias)->status |= IRQ_LEVEL; |
207 | set_irq_chip_and_handler(36+irq_bias, &wildfire_irq_type, alpha_do_IRQ); | 207 | set_irq_chip_and_handler(36+irq_bias, &wildfire_irq_type, alpha_do_IRQ); |
208 | for (i = 40; i < 64; ++i) { | 208 | for (i = 40; i < 64; ++i) { |
209 | irq_desc[i+irq_bias].status |= IRQ_LEVEL; | 209 | irq_to_desc(i+irq_bias)->status |= IRQ_LEVEL; |
210 | set_irq_chip_and_handler(i+irq_bias, &wildfire_irq_type, | 210 | set_irq_chip_and_handler(i+irq_bias, &wildfire_irq_type, |
211 | alpha_do_IRQ); | 211 | alpha_do_IRQ); |
212 | } | 212 | } |