Skip to content

Commit

Permalink
microblaze: Fix kind-of-intr checking against number of interrupts
Browse files Browse the repository at this point in the history
+ Fix typographic fault.

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed May 18, 2009
1 parent 3026589 commit 7b7210d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/microblaze/kernel/intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ void __init init_IRQ(void)

intr_type =
*(int *) of_get_property(intc, "xlnx,kind-of-intr", NULL);
if (intr_type >= (1 << nr_irq))
printk(KERN_INFO " ERROR: Mishmash in king-of-intr param\n");
if (intr_type >= (1 << (nr_irq + 1)))
printk(KERN_INFO " ERROR: Mismatch in kind-of-intr param\n");

#ifdef CONFIG_SELFMOD_INTC
selfmod_function((int *) arr_func, intc_baseaddr);
Expand Down

0 comments on commit 7b7210d

Please sign in to comment.