From e05f9586b302d0dba5e9c98d849596cad1716a6f Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Thu, 5 Mar 2015 22:49:55 +0100 Subject: ARM: change dma_alloc/free_coherent to match other architectures As a lot drivers currently rely on the 1:1 virt->phys mapping on ARM we define DMA_ADDRESS_BROKEN to mark them. In order to use them on other architectures with a different mapping they need proper fixing. Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- drivers/dma/apbh_dma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/dma/apbh_dma.c') diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c index cd218f4582..5692c500b8 100644 --- a/drivers/dma/apbh_dma.c +++ b/drivers/dma/apbh_dma.c @@ -380,7 +380,8 @@ struct mxs_dma_desc *mxs_dma_desc_alloc(void) { struct mxs_dma_desc *pdesc; - pdesc = dma_alloc_coherent(sizeof(struct mxs_dma_desc)); + pdesc = dma_alloc_coherent(sizeof(struct mxs_dma_desc), + DMA_ADDRESS_BROKEN); if (pdesc == NULL) return NULL; -- cgit v1.2.3