m68knommu: fix broken setting of irq_chip and handler
authorGreg Ungerer <gerg@uclinux.org>
Fri, 7 Jan 2011 00:43:09 +0000 (10:43 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Fri, 7 Jan 2011 00:43:09 +0000 (10:43 +1000)
Fix compile error, by using correct loop variable:

arch/m68knommu/platform/68328/ints.c: In function ‘init_IRQ’:
arch/m68knommu/platform/68328/ints.c:182: error: ‘irq’ undeclared (first use in this function)
arch/m68knommu/platform/68328/ints.c:182: error: (Each undeclared identifier is reported only once
arch/m68knommu/platform/68328/ints.c:182: error: for each function it appears in.)

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68knommu/platform/68328/ints.c

index 865852806a1719311936ab2dcf973cf99790f92f..2a3af193ccd36dccaebf60b95e50e4749740f480 100644 (file)
@@ -179,8 +179,8 @@ void __init init_IRQ(void)
        IMR = ~0;
 
        for (i = 0; (i < NR_IRQS); i++) {
-               set_irq_chip(irq, &intc_irq_chip);
-               set_irq_handler(irq, handle_level_irq);
+               set_irq_chip(i, &intc_irq_chip);
+               set_irq_handler(i, handle_level_irq);
        }
 }