Skip to contentSkip to conversation

irqchip: nvic: Fix wrong num_ct argument for irq_alloc_domain_generic_chips()

PATCH New Axel Lin 1 participant 1 message Jul 5, 2013 irqchip drivers

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/irqchip/irq-nvic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/irqchip/irq-nvic.c +1 -1
index 8d0c8b3..70bdf6e 100644
@@ -84,7 +84,7 @@ static int __init nvic_of_init(struct device_node *node,
 		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,
 					     clr, 0, IRQ_GC_INIT_MASK_CACHE);
 	if (ret) {
Signature · 1 line
1.8.1.2