Skip to content

Commit

Permalink
ARM: mach-bcmring: use proper constant to identify DMA memory area
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Pitre authored and Nicolas Pitre committed Nov 18, 2011
1 parent 7146182 commit bfcd2ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-bcmring/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit bfcd2ea

Please sign in to comment.