irqchip/jcore-aic: Fix missing allocation of IRQ descriptors

The initialization function for the J-Core AIC aic_irq_of_init() is
currently missing the call to irq_alloc_descs() which allocates and
initializes all the IRQ descriptors. Add missing function call and
return the error code from irq_alloc_descs() in case the allocation
fails.

Fixes: 981b58f66cfc ("irqchip/jcore-aic: Add J-Core AIC driver")
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Tested-by: Rob Landley <rob@landley.net>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230510163343.43090-1-glaubitz@physik.fu-berlin.de

authored by John Paul Adrian Glaubitz and committed by Marc Zyngier 48482294 48f31e49

+7
+7
drivers/irqchip/irq-jcore-aic.c
··· 68 68 unsigned min_irq = JCORE_AIC2_MIN_HWIRQ; 69 69 unsigned dom_sz = JCORE_AIC_MAX_HWIRQ+1; 70 70 struct irq_domain *domain; 71 + int ret; 71 72 72 73 pr_info("Initializing J-Core AIC\n"); 73 74 ··· 100 99 jcore_aic.irq_mask = noop; 101 100 jcore_aic.irq_unmask = noop; 102 101 jcore_aic.name = "AIC"; 102 + 103 + ret = irq_alloc_descs(-1, min_irq, dom_sz - min_irq, 104 + of_node_to_nid(node)); 105 + 106 + if (ret < 0) 107 + return ret; 103 108 104 109 domain = irq_domain_add_legacy(node, dom_sz - min_irq, min_irq, min_irq, 105 110 &jcore_aic_irqdomain_ops,