Commit 5c30cdfa authored by Tapani Utriainen's avatar Tapani Utriainen Committed by Tony Lindgren

ARM: OMAP: irq: loop counter fix in omap_init_irq()

Fixes bug where variable i was redundantly used for counting two nested loops.
Signed-off-by: default avatarTapani Utriainen <tapani@technexion.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent a368f776
...@@ -165,8 +165,8 @@ static void __init omap_init_irq(u32 base, int nr_irqs) ...@@ -165,8 +165,8 @@ static void __init omap_init_irq(u32 base, int nr_irqs)
omap_irq_bank_init_one(bank); omap_irq_bank_init_one(bank);
for (i = 0, j = 0; i < bank->nr_irqs; i += 32, j += 0x20) for (j = 0; j < bank->nr_irqs; j += 32)
omap_alloc_gc(bank->base_reg + j, i, 32); omap_alloc_gc(bank->base_reg + j, j, 32);
nr_of_irqs += bank->nr_irqs; nr_of_irqs += bank->nr_irqs;
nr_banks++; nr_banks++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment