arm64: use ioremap_cache() instead of ioremap_cached()

ARM64 doesn't have ioremap_cached() anymore.  Switch to ioremap_cache()
which is platform indepdendent.

Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
This commit is contained in:
Joonwoo Park 2014-07-24 20:11:36 -07:00 committed by Joonwoo Park
parent 1242c8849f
commit 4f5d689bba
3 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ static void *pil_femto_modem_map_fw_mem(phys_addr_t paddr, size_t size, void *d)
/* Due to certain memory areas on the platform requiring 32-bit wide
* accesses, we must cache the firmware to avoid bus errors.
*/
return ioremap_cached(paddr, size);
return ioremap_cache(paddr, size);
}
static void pil_femto_modem_unmap_fw_mem(void *vaddr, size_t size, void *data)

View File

@ -129,7 +129,7 @@ void *ion_carveout_heap_map_kernel(struct ion_heap *heap,
void *ret_value;
if (ION_IS_CACHED(buffer->flags))
ret_value = ioremap_cached(buffer->priv_phys, buffer->size);
ret_value = ioremap_cache(buffer->priv_phys, buffer->size);
else
ret_value = ioremap(buffer->priv_phys, buffer->size);

View File

@ -179,7 +179,7 @@ void *ion_removed_heap_map_kernel(struct ion_heap *heap,
return ERR_PTR(-EAGAIN);
if (ION_IS_CACHED(buffer->flags))
ret_value = ioremap_cached(buffer->priv_phys, buffer->size);
ret_value = ioremap_cache(buffer->priv_phys, buffer->size);
else
ret_value = ioremap(buffer->priv_phys, buffer->size);