From: Al Viro <[email protected]>
Signed-off-by: Al Viro <[email protected]>
---
arch/nios2/mm/dma-mapping.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/nios2/mm/dma-mapping.c b/arch/nios2/mm/dma-mapping.c
index fa242ab..0195f8f 100644
--- a/arch/nios2/mm/dma-mapping.c
+++ b/arch/nios2/mm/dma-mapping.c
@@ -50,9 +50,7 @@ EXPORT_SYMBOL(dma_alloc_coherent);
void dma_free_coherent(struct device *dev, size_t size, void *vaddr,
dma_addr_t dma_handle)
{
- unsigned long addr = (unsigned long) CAC_ADDR((unsigned long) vaddr);
-
- free_pages((void *)addr, get_order(size));
+ free_pages(CAC_ADDR(vaddr), get_order(size));
}
EXPORT_SYMBOL(dma_free_coherent);
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/