Forráskód Böngészése

ARM: OMAP: sram: fix OMAP4 errata handling

OMAP4-specific code should be executed only if we are running on
OMAP4. Otherwise it may break multi-OMAP kernels. Found by reading
the code.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Aaro Koskinen 13 éve
szülő
commit
528c28f5c1
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      arch/arm/plat-omap/sram.c

+ 2 - 0
arch/arm/plat-omap/sram.c

@@ -175,8 +175,10 @@ static void __init omap_map_sram(void)
 		return;
 
 #ifdef CONFIG_OMAP4_ERRATA_I688
+	if (cpu_is_omap44xx()) {
 		omap_sram_start += PAGE_SIZE;
 		omap_sram_size -= SZ_16K;
+	}
 #endif
 	if (cpu_is_omap34xx()) {
 		/*