Skip to content

Commit

Permalink
arm: omap: irq: call set_handle_irq() from .init_irq
Browse files Browse the repository at this point in the history
the idea is that board-files won't need to set
.handle_irq on their machine_descs, which lets
us drop a little more pointless code.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Felipe Balbi authored and Tony Lindgren committed Sep 11, 2014
1 parent a4d3c5d commit be0a768
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-omap2/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,19 @@ asmlinkage void __exception_irq_entry omap2_intc_handle_irq(struct pt_regs *regs
void __init omap2_init_irq(void)
{
omap_init_irq(OMAP24XX_IC_BASE, 96, NULL);
set_handle_irq(omap2_intc_handle_irq);
}

void __init omap3_init_irq(void)
{
omap_init_irq(OMAP34XX_IC_BASE, 96, NULL);
set_handle_irq(omap2_intc_handle_irq);
}

void __init ti81xx_init_irq(void)
{
omap_init_irq(OMAP34XX_IC_BASE, 128, NULL);
set_handle_irq(omap2_intc_handle_irq);
}

static int __init intc_of_init(struct device_node *node,
Expand Down

0 comments on commit be0a768

Please sign in to comment.