From: Michal Simek Date: Thu, 14 May 2009 11:35:52 +0000 (+0200) Subject: microblaze: Fix kind-of-intr checking against number of interrupts X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7b7210d7a9d260becef4dba98b9075e2c9b41f93;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git microblaze: Fix kind-of-intr checking against number of interrupts + Fix typographic fault. Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/kernel/intc.c b/arch/microblaze/kernel/intc.c index a69d3e3c2fd4..b15605299a57 100644 --- a/arch/microblaze/kernel/intc.c +++ b/arch/microblaze/kernel/intc.c @@ -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);