From: Nicolas Pitre Date: Thu, 15 Sep 2011 20:23:45 +0000 (-0400) Subject: ARM: mach-bcmring: use proper constant to identify DMA memory area X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bfcd2ea6a40b33270564d706396f1b514a988d3c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ARM: mach-bcmring: use proper constant to identify DMA memory area Using VMALLOC_END implies a presumption about the layout which is best avoided, even if in practice this would not change much. Signed-off-by: Nicolas Pitre --- diff --git a/arch/arm/mach-bcmring/dma.c b/arch/arm/mach-bcmring/dma.c index b52b8de91bde..8751582a6cb1 100644 --- a/arch/arm/mach-bcmring/dma.c +++ b/arch/arm/mach-bcmring/dma.c @@ -1614,7 +1614,7 @@ DMA_MemType_t dma_mem_type(void *addr) { unsigned long addrVal = (unsigned long)addr; - if (addrVal >= VMALLOC_END) { + if (addrVal >= CONSISTENT_BASE) { /* NOTE: DMA virtual memory space starts at 0xFFxxxxxx */ /* dma_alloc_xxx pages are physically and virtually contiguous */