microblaze: Fix kind-of-intr checking against number of interrupts
authorMichal Simek <monstr@monstr.eu>
Thu, 14 May 2009 11:35:52 +0000 (13:35 +0200)
committerMichal Simek <monstr@monstr.eu>
Mon, 18 May 2009 12:47:42 +0000 (14:47 +0200)
+ Fix typographic fault.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/intc.c

index a69d3e3c2fd443ae0e1c3a45d7476fbe3ebc0710..b15605299a57f448b57f0c9cb534cf511c796eb3 100644 (file)
@@ -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);