aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2014-09-08 20:54:43 -0400
committerTony Lindgren <tony@atomide.com>2014-09-11 16:03:45 -0400
commitb65ecd46125929941076e7af77b5e685a332c33c (patch)
tree4c420df7fca296fa05fba767b8e97fe1a402f61b /arch/arm/mach-omap2
parentb15c76b74896f1a2c60fff13fdf20d07468de323 (diff)
arm: omap: irq: use IRQCHIP_DECLARE macro
IRQCHIP_DECLARE macro is used to declare the same of_device_id structure for irqchips, it's just a helper. No functional changes. Note that we're temporarily including irqchip.h with its full path, until we move this driver to drivers/irqchip/. Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/irq.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c
index ee9f1e810700..280124371c07 100644
--- a/arch/arm/mach-omap2/irq.c
+++ b/arch/arm/mach-omap2/irq.c
@@ -26,6 +26,7 @@
26#include "soc.h" 26#include "soc.h"
27#include "iomap.h" 27#include "iomap.h"
28#include "common.h" 28#include "common.h"
29#include "../../drivers/irqchip/irqchip.h"
29 30
30/* selected INTC register offsets */ 31/* selected INTC register offsets */
31 32
@@ -319,14 +320,11 @@ static int __init intc_of_init(struct device_node *node,
319 return 0; 320 return 0;
320} 321}
321 322
322static const struct of_device_id irq_match[] __initconst = { 323IRQCHIP_DECLARE(omap_intc, "ti,omap2-intc", intc_of_init);
323 { .compatible = "ti,omap2-intc", .data = intc_of_init, },
324 { }
325};
326 324
327void __init omap_intc_of_init(void) 325void __init omap_intc_of_init(void)
328{ 326{
329 of_irq_init(irq_match); 327 of_irq_init(&irqchip_of_match_omap_intc);
330} 328}
331 329
332asmlinkage void __exception_irq_entry omap3_intc_handle_irq(struct pt_regs *regs) 330asmlinkage void __exception_irq_entry omap3_intc_handle_irq(struct pt_regs *regs)