amba-clcd: Only use dma_alloc_writecombine() if the arch supports it
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 4 Jan 2013 12:56:49 +0000 (12:56 +0000)
committerJon Medhurst <tixy@linaro.org>
Mon, 1 Jul 2013 10:04:31 +0000 (11:04 +0100)
commit8df3102afa56f6e0b8fdc6df4af0ac4d8436f9a6
tree9bd2b24aedc5f324e347253bc58a00c379bd4454
parent95c8041c5018e75c58968f0ca2251482fe6b22d6
amba-clcd: Only use dma_alloc_writecombine() if the arch supports it

This patch hides the dma_(alloc|free)_writecombine() calls behind macros
to allow the amba-clcd.c to be used on architectures that do not provide
this DMA API. With this patch, the *_writecombine() API is only used on
ARM (AArch32).

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/video/amba-clcd.c