Commit 363922946f96ad1d6420107ebcfa9a95b659fe75

Authored by Michal Simek
1 parent 6dbd3085c3

microblaze: Do not show error message for 32 interrupt lines

When interrupt controller uses 32 interrupts lines the kernel
show error message about mismatch in kind-of-intr parameter
because it exceeds u32. Recast fixs this issue.

Signed-off-by: Michal Simek <monstr@monstr.eu>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/microblaze/kernel/intc.c
... ... @@ -134,7 +134,7 @@
134 134 intr_type =
135 135 be32_to_cpup(of_get_property(intc,
136 136 "xlnx,kind-of-intr", NULL));
137   - if (intr_type >= (1 << (nr_irq + 1)))
  137 + if (intr_type > (u32)((1ULL << nr_irq) - 1))
138 138 printk(KERN_INFO " ERROR: Mismatch in kind-of-intr param\n");
139 139  
140 140 #ifdef CONFIG_SELFMOD_INTC