omap4: Use get_irqnr_preamble
authorTony Lindgren <tony@atomide.com>
Mon, 15 Feb 2010 17:27:25 +0000 (09:27 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 15 Feb 2010 17:27:25 +0000 (09:27 -0800)
Use get_irqnr_preamble

Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/include/mach/entry-macro.S

index 3e63aaabebe7fae85de525140132b5c48c70381a..101ed79deec4cb4a43433b99ebcf44705392dba7 100644 (file)
@@ -92,6 +92,7 @@ omap_irq_base:        .word   0
 #ifdef CONFIG_ARCH_OMAP4
 
                .macro  get_irqnr_preamble, base, tmp
+               ldr     \base, =OMAP4_IRQ_BASE
                .endm
 
                /*
@@ -114,7 +115,6 @@ omap_irq_base:      .word   0
                 * valid range for an IRQ (30-1020 inclusive).
                 */
                .macro  get_irqnr_and_base, irqnr, irqstat, base, tmp
-               ldr     \base, =OMAP4_IRQ_BASE
                ldr     \irqstat, [\base, #GIC_CPU_INTACK]
 
                ldr     \tmp, =1021