提交 1b26fe86 编写于 作者: T Tony Lindgren

omap: Use ioremap in irq.c

Use ioremap in irq.c
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 84f90c9c
...@@ -178,12 +178,20 @@ void __init omap_init_irq(void) ...@@ -178,12 +178,20 @@ void __init omap_init_irq(void)
int i; int i;
for (i = 0; i < ARRAY_SIZE(irq_banks); i++) { for (i = 0; i < ARRAY_SIZE(irq_banks); i++) {
unsigned long base;
struct omap_irq_bank *bank = irq_banks + i; struct omap_irq_bank *bank = irq_banks + i;
if (cpu_is_omap24xx()) if (cpu_is_omap24xx())
bank->base_reg = OMAP2_IO_ADDRESS(OMAP24XX_IC_BASE); base = OMAP24XX_IC_BASE;
else if (cpu_is_omap34xx()) else if (cpu_is_omap34xx())
bank->base_reg = OMAP2_IO_ADDRESS(OMAP34XX_IC_BASE); base = OMAP34XX_IC_BASE;
/* Static mapping, never released */
bank->base_reg = ioremap(base, SZ_4K);
if (!bank->base_reg) {
printk(KERN_ERR "Could not ioremap irq bank%i\n", i);
continue;
}
omap_irq_bank_init_one(bank); omap_irq_bank_init_one(bank);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册