]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/plat-omap/sram.c
ARM: OMAP: 2420 boot BUG(): failure to map SRAM
[linux-2.6-omap-h63xx.git] / arch / arm / plat-omap / sram.c
index aebd06faf2cfd4c6c59c622b538e04696aa058d2..19014b2ff4c6315a6e190c3c2c03e17c33eb184b 100644 (file)
@@ -11,7 +11,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
@@ -175,10 +174,7 @@ void __init omap_map_sram(void)
        if (cpu_is_omap24xx()) {
                omap_sram_io_desc[0].virtual = OMAP2_SRAM_VA;
 
-               if (is_sram_locked())
-                       base = OMAP2_SRAM_PUB_PA;
-               else
-                       base = OMAP2_SRAM_PA;
+               base = OMAP2_SRAM_PA;
                base = ROUND_DOWN(base, PAGE_SIZE);
                omap_sram_io_desc[0].pfn = __phys_to_pfn(base);
        }