diff options
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/omap4-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index beecfdd56ea3..21d4821c9612 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c | |||
@@ -72,7 +72,8 @@ static int __init omap_l2_cache_init(void) | |||
72 | 72 | ||
73 | /* Static mapping, never released */ | 73 | /* Static mapping, never released */ |
74 | l2cache_base = ioremap(OMAP44XX_L2CACHE_BASE, SZ_4K); | 74 | l2cache_base = ioremap(OMAP44XX_L2CACHE_BASE, SZ_4K); |
75 | BUG_ON(!l2cache_base); | 75 | if (WARN_ON(!l2cache_base)) |
76 | return -ENOMEM; | ||
76 | 77 | ||
77 | /* | 78 | /* |
78 | * 16-way associativity, parity disabled | 79 | * 16-way associativity, parity disabled |