Skip to content

Commit

Permalink
m68knommu: fix broken setting of irq_chip and handler
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer committed Jan 7, 2011
1 parent c9942c5 commit 4c65595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/m68knommu/platform/68328/ints.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 4c65595

Please sign in to comment.