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>
*/
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
* 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
}
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.
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)