summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcmring
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2011-09-15 16:23:45 -0400
committerNicolas Pitre <nico@fluxnic.net>2011-11-18 13:51:15 -0500
commitbfcd2ea6a40b33270564d706396f1b514a988d3c (patch)
treead74209da9ac9a58123d105fb611b0d94b4a7af3 /arch/arm/mach-bcmring
parent7146182c7f446903dea032fc992dca8d61c12750 (diff)
downloadlinux-bfcd2ea6a40b33270564d706396f1b514a988d3c.tar.gz
linux-bfcd2ea6a40b33270564d706396f1b514a988d3c.tar.bz2
linux-bfcd2ea6a40b33270564d706396f1b514a988d3c.zip
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 <nicolas.pitre@linaro.org>
Diffstat (limited to 'arch/arm/mach-bcmring')
-rw-r--r--arch/arm/mach-bcmring/dma.c2
1 files changed, 1 insertions, 1 deletions
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 */