ARM: 8633/1: nommu: allow mmap when !CONFIG_MMU
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Mon, 12 Dec 2016 08:31:18 +0000 (09:31 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 10 Jan 2017 23:32:54 +0000 (23:32 +0000)
commit79964a1c2972ca7ecc231e2d2ac7593a1af73f63
tree33800f7aaab3f6018a6b9e25d4fc12e282f633ad
parent00a19f3e25c0c40e0ec77f52d4841d23ad269169
ARM: 8633/1: nommu: allow mmap when !CONFIG_MMU

commit ab6494f0c96f ("nommu: Add noMMU support to the DMA API") have
add CONFIG_MMU compilation flag but that prohibit to use dma_mmap_wc()
when the platform doesn't have MMU.

This patch call vm_iomap_memory() in noMMU case to test if addresses
are correct and set vma->vm_flags rather than all return an error.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/dma-mapping.c