MIPS: xilfpga: Use irqchip instead of the legacy way
authorZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Tue, 22 Nov 2016 17:52:38 +0000 (17:52 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Jan 2017 15:34:39 +0000 (16:34 +0100)
This prepares the code to use the Xilinx Interrupt Controller
driver in drivers/irqchip/irq-xilinx-intc.c

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Cc: Zubair.Kakakhel@imgtec.com
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14591/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/xilfpga/intc.c

index c4d1a716b34757175c73baff932ee6d223a42552..a127cca3ae8cd256272cd894ba2c57152dded569 100644 (file)
 
 #include <linux/of.h>
 #include <linux/of_irq.h>
+#include <linux/irqchip.h>
 
 #include <asm/irq_cpu.h>
 
-static struct of_device_id of_irq_ids[] __initdata = {
-       { .compatible = "mti,cpu-interrupt-controller", .data = mips_cpu_irq_of_init },
-       {},
-};
 
 void __init arch_init_irq(void)
 {
-       of_irq_init(of_irq_ids);
+       irqchip_init();
 }