Skip to content

Commit 7b7210d

Browse files
committed
microblaze: Fix kind-of-intr checking against number of interrupts
+ Fix typographic fault. Signed-off-by: Michal Simek <[email protected]>
1 parent 3026589 commit 7b7210d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/microblaze/kernel/intc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ void __init init_IRQ(void)
137137

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

143143
#ifdef CONFIG_SELFMOD_INTC
144144
selfmod_function((int *) arr_func, intc_baseaddr);

0 commit comments

Comments
 (0)