ARM: OMAP: OCM RAM: use memset_io() when clearing SRAM
[firefly-linux-kernel-4.4.55.git] / arch / arm / plat-omap / sram.c
index eec98afa0f8328b2023f855879fa8a2ff34890ac..6beb79cccc8f6edf72c095f9be6c90e9fa45bced 100644 (file)
@@ -196,8 +196,8 @@ static void __init omap_map_sram(void)
         * Looks like we need to preserve some bootloader code at the
         * beginning of SRAM for jumping to flash for reboot to work...
         */
-       memset((void *)omap_sram_base + SRAM_BOOTLOADER_SZ, 0,
-              omap_sram_size - SRAM_BOOTLOADER_SZ);
+       memset_io(omap_sram_base + SRAM_BOOTLOADER_SZ, 0,
+                 omap_sram_size - SRAM_BOOTLOADER_SZ);
 }
 
 /*