diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap4-common.c')
| -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 beecfdd56ea..21d4821c961 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)  	/* Static mapping, never released */  	l2cache_base = ioremap(OMAP44XX_L2CACHE_BASE, SZ_4K); -	BUG_ON(!l2cache_base); +	if (WARN_ON(!l2cache_base)) +		return -ENOMEM;  	/*  	 * 16-way associativity, parity disabled  |