diff options
author | Michal Simek <monstr@monstr.eu> | 2009-05-14 13:35:52 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-05-18 14:47:42 +0200 |
commit | 7b7210d7a9d260becef4dba98b9075e2c9b41f93 (patch) | |
tree | 440390c0eb7d82271fa8a5ad6668e28e7bb17254 /arch | |
parent | 3026589c1bc17b0c389b95afec127e92e2a745e2 (diff) | |
download | linux-7b7210d7a9d260becef4dba98b9075e2c9b41f93.tar.gz linux-7b7210d7a9d260becef4dba98b9075e2c9b41f93.tar.bz2 linux-7b7210d7a9d260becef4dba98b9075e2c9b41f93.zip |
microblaze: Fix kind-of-intr checking against number of interrupts
+ Fix typographic fault.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/microblaze/kernel/intc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |