ARM: mmu: Share code between dma_alloc_*() functions
Code of dma_alloc_coherent() and dma_alloc_writecombine() is almost
identical with exception of the flags passed to undelying call to
__remap_range(). Move commong code into a shared subroutine and
convert both functions to use it.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent f42c864 commit f9f233130b1bc0c28d4c5a754a4d5266f3fb3eb9
@Andrey Smirnov Andrey Smirnov authored on 17 May 2018
Sascha Hauer committed on 18 May 2018
Showing 1 changed file
View
arch/arm/cpu/mmu.c