summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Liangjun <b36089@freescale.com>2012-08-13 15:52:19 +0800
committerChen Liangjun <b36089@freescale.com>2012-08-13 16:04:40 +0800
commit3549c7dcdef945b149d55d776076a29526e491fd (patch)
treefc6c00b8878d3fa39eb6a4adb4e2d1eff80fcc96
parent2c03e5da6e551b56e900aefc05e8abf522a4b7ff (diff)
ENGR00220181-1 DMA: remove noncacheable memory allocation limit.
DMA interface dma_alloc_noncacheable() is only used by USB. HDMI audio driver also need the interface to allocate C=0 B=0 type memory. In this patch, remove MACRO limitation and make dma_alloc_noncacheable() common code for other modules. Signed-off-by: Chen Liangjun <b36089@freescale.com>
-rw-r--r--arch/arm/include/asm/dma-mapping.h3
-rw-r--r--arch/arm/mm/dma-mapping.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h
index b52c063203dc..635c940cd060 100644
--- a/arch/arm/include/asm/dma-mapping.h
+++ b/arch/arm/include/asm/dma-mapping.h
@@ -198,8 +198,6 @@ extern void *dma_alloc_coherent(struct device *, size_t, dma_addr_t *, gfp_t);
*/
extern void *dma_alloc_writethrough(struct device *, size_t, dma_addr_t *, gfp_t);
-
-#ifdef CONFIG_FSL_UTP
/**
* dma_alloc_noncacheable - allocate consistent memory for DMA
* @dev: valid struct device pointer, or NULL for ISA and EISA-like devices
@@ -212,7 +210,6 @@ extern void *dma_alloc_writethrough(struct device *, size_t, dma_addr_t *, gfp_t
* device-viewed address.
*/
extern void *dma_alloc_noncacheable(struct device *, size_t, dma_addr_t *, gfp_t);
-#endif
/**
* dma_free_coherent - free memory allocated by dma_alloc_coherent
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
index e134cfff3ba1..0f0baddf4eb9 100644
--- a/arch/arm/mm/dma-mapping.c
+++ b/arch/arm/mm/dma-mapping.c
@@ -369,8 +369,6 @@ dma_alloc_writethrough(struct device *dev, size_t size, dma_addr_t *handle, gfp_
}
EXPORT_SYMBOL(dma_alloc_writethrough);
-
-#ifdef CONFIG_FSL_UTP
/*
* Allocate noncacheable memory space and return both the kernel remapped
* virtual and bus address for that space.
@@ -383,7 +381,6 @@ dma_alloc_noncacheable(struct device *dev, size_t size, dma_addr_t *handle, gfp_
pgprot_noncached(pgprot_kernel));
}
EXPORT_SYMBOL(dma_alloc_noncacheable);
-#endif
static int dma_mmap(struct device *dev, struct vm_area_struct *vma,
void *cpu_addr, dma_addr_t dma_addr, size_t size)