arm: omap: irq: use IRQCHIP_DECLARE macro
[deliverable/linux.git] / arch / arm / mach-omap2 / irq.c
index ee9f1e810700476647cf6e5f4c461ee3d9b44376..280124371c075d40c0415d234a03d97559794320 100644 (file)
@@ -26,6 +26,7 @@
 #include "soc.h"
 #include "iomap.h"
 #include "common.h"
+#include "../../drivers/irqchip/irqchip.h"
 
 /* selected INTC register offsets */
 
@@ -319,14 +320,11 @@ static int __init intc_of_init(struct device_node *node,
        return 0;
 }
 
-static const struct of_device_id irq_match[] __initconst = {
-       { .compatible = "ti,omap2-intc", .data = intc_of_init, },
-       { }
-};
+IRQCHIP_DECLARE(omap_intc, "ti,omap2-intc", intc_of_init);
 
 void __init omap_intc_of_init(void)
 {
-       of_irq_init(irq_match);
+       of_irq_init(&irqchip_of_match_omap_intc);
 }
 
 asmlinkage void __exception_irq_entry omap3_intc_handle_irq(struct pt_regs *regs)
This page took 0.026113 seconds and 5 git commands to generate.