aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/irq.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c
index b82863887f10..1db121f437d2 100644
--- a/arch/arm/mach-omap2/irq.c
+++ b/arch/arm/mach-omap2/irq.c
@@ -178,12 +178,20 @@ void __init omap_init_irq(void)
178 int i; 178 int i;
179 179
180 for (i = 0; i < ARRAY_SIZE(irq_banks); i++) { 180 for (i = 0; i < ARRAY_SIZE(irq_banks); i++) {
181 unsigned long base;
181 struct omap_irq_bank *bank = irq_banks + i; 182 struct omap_irq_bank *bank = irq_banks + i;
182 183
183 if (cpu_is_omap24xx()) 184 if (cpu_is_omap24xx())
184 bank->base_reg = OMAP2_IO_ADDRESS(OMAP24XX_IC_BASE); 185 base = OMAP24XX_IC_BASE;
185 else if (cpu_is_omap34xx()) 186 else if (cpu_is_omap34xx())
186 bank->base_reg = OMAP2_IO_ADDRESS(OMAP34XX_IC_BASE); 187 base = OMAP34XX_IC_BASE;
188
189 /* Static mapping, never released */
190 bank->base_reg = ioremap(base, SZ_4K);
191 if (!bank->base_reg) {
192 printk(KERN_ERR "Could not ioremap irq bank%i\n", i);
193 continue;
194 }
187 195
188 omap_irq_bank_init_one(bank); 196 omap_irq_bank_init_one(bank);
189 197