diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-07-05 03:39:11 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2013-07-05 05:39:24 -0400 |
commit | 5b8aae489a07ac7d5a2cb897d6ca1fddb0c0043a (patch) | |
tree | 0bc6f9ce8791a69f5ff00c1d16034d9a094b0bea /drivers/irqchip | |
parent | baaecfa7249f1d5553a31f8ad0b9c7ffabcaa339 (diff) |
irqchip: nvic: Fix wrong num_ct argument for irq_alloc_domain_generic_chips()
The third parameter of irq_alloc_domain_generic_chips() is the number of
irq_chip_type instances associated with these chips rather than numbanks.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Cc: Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: kernel@pengutronix.de
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r-- | drivers/irqchip/irq-nvic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-nvic.c b/drivers/irqchip/irq-nvic.c index 8d0c8b3181c5..70bdf6edb7bb 100644 --- a/drivers/irqchip/irq-nvic.c +++ b/drivers/irqchip/irq-nvic.c | |||
@@ -84,7 +84,7 @@ static int __init nvic_of_init(struct device_node *node, | |||
84 | return -ENOMEM; | 84 | return -ENOMEM; |
85 | } | 85 | } |
86 | 86 | ||
87 | ret = irq_alloc_domain_generic_chips(nvic_irq_domain, 32, numbanks, | 87 | ret = irq_alloc_domain_generic_chips(nvic_irq_domain, 32, 1, |
88 | "nvic_irq", handle_fasteoi_irq, | 88 | "nvic_irq", handle_fasteoi_irq, |
89 | clr, 0, IRQ_GC_INIT_MASK_CACHE); | 89 | clr, 0, IRQ_GC_INIT_MASK_CACHE); |
90 | if (ret) { | 90 | if (ret) { |