diff options
author | Michal Simek <monstr@monstr.eu> | 2011-07-27 04:45:32 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2011-07-27 05:02:00 -0400 |
commit | 363922946f96ad1d6420107ebcfa9a95b659fe75 (patch) | |
tree | 07acba29752f42195d984389657a83d55755ecf1 /arch | |
parent | 6dbd3085c3c3a53dfa4491ebcbf7847955b16f26 (diff) |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/microblaze/kernel/intc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/intc.c b/arch/microblaze/kernel/intc.c index c88f066f41bd..eb41441c7fd0 100644 --- a/arch/microblaze/kernel/intc.c +++ b/arch/microblaze/kernel/intc.c | |||
@@ -134,7 +134,7 @@ void __init init_IRQ(void) | |||
134 | intr_type = | 134 | intr_type = |
135 | be32_to_cpup(of_get_property(intc, | 135 | be32_to_cpup(of_get_property(intc, |
136 | "xlnx,kind-of-intr", NULL)); | 136 | "xlnx,kind-of-intr", NULL)); |
137 | if (intr_type >= (1 << (nr_irq + 1))) | 137 | if (intr_type > (u32)((1ULL << nr_irq) - 1)) |
138 | printk(KERN_INFO " ERROR: Mismatch in kind-of-intr param\n"); | 138 | printk(KERN_INFO " ERROR: Mismatch in kind-of-intr param\n"); |
139 | 139 | ||
140 | #ifdef CONFIG_SELFMOD_INTC | 140 | #ifdef CONFIG_SELFMOD_INTC |