|
@@ -72,7 +72,8 @@ static int __init omap_l2_cache_init(void)
|
|
|
|
|
|
/* Static mapping, never released */
|
|
/* Static mapping, never released */
|
|
l2cache_base = ioremap(OMAP44XX_L2CACHE_BASE, SZ_4K);
|
|
l2cache_base = ioremap(OMAP44XX_L2CACHE_BASE, SZ_4K);
|
|
- BUG_ON(!l2cache_base);
|
|
|
|
|
|
+ if (WARN_ON(!l2cache_base))
|
|
|
|
+ return -ENOMEM;
|
|
|
|
|
|
/*
|
|
/*
|
|
* 16-way associativity, parity disabled
|
|
* 16-way associativity, parity disabled
|