Commit 2998b1d3 authored by Roland Stigge's avatar Roland Stigge

ARM: LPC32xx: Remove superfluous irq_alloc_descs()

This patch removes the call to irq_alloc_descs() which always returns an error
since the descriptors are always preallocated already.
Signed-off-by: default avatarRoland Stigge <stigge@antcom.de>
parent 3d70f8c6
...@@ -412,7 +412,6 @@ static const struct of_device_id mic_of_match[] __initconst = { ...@@ -412,7 +412,6 @@ static const struct of_device_id mic_of_match[] __initconst = {
void __init lpc32xx_init_irq(void) void __init lpc32xx_init_irq(void)
{ {
unsigned int i; unsigned int i;
int irq_base;
/* Setup MIC */ /* Setup MIC */
__raw_writel(0, LPC32XX_INTC_MASK(LPC32XX_MIC_BASE)); __raw_writel(0, LPC32XX_INTC_MASK(LPC32XX_MIC_BASE));
...@@ -475,15 +474,8 @@ void __init lpc32xx_init_irq(void) ...@@ -475,15 +474,8 @@ void __init lpc32xx_init_irq(void)
of_irq_init(mic_of_match); of_irq_init(mic_of_match);
irq_base = irq_alloc_descs(-1, 0, NR_IRQS, 0);
if (irq_base < 0) {
pr_warn("Cannot allocate irq_descs, assuming pre-allocated\n");
irq_base = 0;
}
lpc32xx_mic_domain = irq_domain_add_legacy(lpc32xx_mic_np, NR_IRQS, lpc32xx_mic_domain = irq_domain_add_legacy(lpc32xx_mic_np, NR_IRQS,
irq_base, 0, 0, 0, &irq_domain_simple_ops,
&irq_domain_simple_ops,
NULL); NULL);
if (!lpc32xx_mic_domain) if (!lpc32xx_mic_domain)
panic("Unable to add MIC irq domain\n"); panic("Unable to add MIC irq domain\n");
......
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