Commit 5b8aae48 authored by Axel Lin's avatar Axel Lin Committed by Thomas Gleixner

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: default avatarAxel 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: default avatarThomas Gleixner <tglx@linutronix.de>
parent baaecfa7
...@@ -84,7 +84,7 @@ static int __init nvic_of_init(struct device_node *node, ...@@ -84,7 +84,7 @@ static int __init nvic_of_init(struct device_node *node,
return -ENOMEM; return -ENOMEM;
} }
ret = irq_alloc_domain_generic_chips(nvic_irq_domain, 32, numbanks, ret = irq_alloc_domain_generic_chips(nvic_irq_domain, 32, 1,
"nvic_irq", handle_fasteoi_irq, "nvic_irq", handle_fasteoi_irq,
clr, 0, IRQ_GC_INIT_MASK_CACHE); clr, 0, IRQ_GC_INIT_MASK_CACHE);
if (ret) { if (ret) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment