aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/irq.c
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2007-08-28 04:47:56 -0400
committerPaul Mackerras <paulus@samba.org>2007-09-13 11:33:20 -0400
commit7866291d4cabf5491d4ecb62787308f8b8958f59 (patch)
tree209d6c2b2d31a025cab16d0f5d23ff56855dfff8 /arch/powerpc/kernel/irq.c
parent6815800601d3e46b976c868e4e85fb6de32b9133 (diff)
[POWERPC] Initialise hwirq for legacy irqs
Although no one uses the hwirq value for legacy irqs at the moment, we should really setup the correct value in the irq_map. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r--arch/powerpc/kernel/irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index d5c7e4cf2b39..1339f32b44b5 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -487,7 +487,7 @@ __init_refok struct irq_host *irq_alloc_host(struct device_node *of_node,
487 host->inval_irq = 0; 487 host->inval_irq = 0;
488 /* setup us as the host for all legacy interrupts */ 488 /* setup us as the host for all legacy interrupts */
489 for (i = 1; i < NUM_ISA_INTERRUPTS; i++) { 489 for (i = 1; i < NUM_ISA_INTERRUPTS; i++) {
490 irq_map[i].hwirq = 0; 490 irq_map[i].hwirq = i;
491 smp_wmb(); 491 smp_wmb();
492 irq_map[i].host = host; 492 irq_map[i].host = host;
493 smp_wmb(); 493 smp_wmb();