OMAP2/3: IRQ: ensure valid base address

Ensure valid base address during IRQ init. Fixes compiler warning
about potential use of uninitialized variable.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by Kevin Hilman and committed by Tony Lindgren 74005a2b 9af915da

+3 -1
+3 -1
arch/arm/mach-omap2/irq.c
··· 194 194 int i; 195 195 196 196 for (i = 0; i < ARRAY_SIZE(irq_banks); i++) { 197 - unsigned long base; 197 + unsigned long base = 0; 198 198 struct omap_irq_bank *bank = irq_banks + i; 199 199 200 200 if (cpu_is_omap24xx()) 201 201 base = OMAP24XX_IC_BASE; 202 202 else if (cpu_is_omap34xx()) 203 203 base = OMAP34XX_IC_BASE; 204 + 205 + BUG_ON(!base); 204 206 205 207 /* Static mapping, never released */ 206 208 bank->base_reg = ioremap(base, SZ_4K);