OMAP: irq: fix bug with a reused loop counter
Subsystems (3)
PATCH 1/1 OMAP: irq: fix bug with a reused loop counter
Bugfix: Two nested for-loops were both using "i" as loop counter.
Signed-off-by Tapani Utriainen <[email protected]>
--- arch/arm/mach-omap2/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/irq.c +2 -2
@@ -165,8 +165,8 @@omap_irq_bank_init_one (bank); -for (i =0 , j =0 ; i < bank->nr_irqs; i +=32 , j +=0x20 ) -omap_alloc_gc (bank->base_reg + j, i,32 ); +for (j =0 ; j < bank->nr_irqs; j +=32 ) +omap_alloc_gc (bank->base_reg + j, j,32 ); nr_of_irqs += bank->nr_irqs; nr_banks++;
---