irqchip/jcore-aic: Fix missing allocation of IRQ descriptors
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Wed, 10 May 2023 16:33:42 +0000 (18:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:20:58 +0000 (16:20 +0200)
commitfaf004e98d02747eff9477e5a6d5393a669f8f8d
treea992a496e0b83cc09529ecc71d35c4d0ba28ab14
parent0cf83d3698fb4426248e577f64130ddc73180a3a
irqchip/jcore-aic: Fix missing allocation of IRQ descriptors

[ Upstream commit 4848229494a323eeaab62eee5574ef9f7de80374 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-jcore-aic.c