9
0
Fork 0

MIPS: change dma_alloc/free_coherent to common prototypes

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Lucas Stach 2015-03-05 22:49:54 +01:00 committed by Sascha Hauer
parent 394a3533a8
commit 6c583d0e32
2 changed files with 5 additions and 3 deletions

View File

@ -12,12 +12,14 @@ static inline void *dma_alloc_coherent(size_t size, dma_addr_t *dma_handle)
ret = xmemalign(PAGE_SIZE, size);
*dma_handle = CPHYSADDR(ret);
if (dma_handle)
*dma_handle = CPHYSADDR(ret);
return (void *)CKSEG1ADDR(ret);
}
static inline void dma_free_coherent(void *vaddr)
static inline void dma_free_coherent(void *vaddr, dma_addr_t dma_handle,
size_t size)
{
free(vaddr);
}

View File

@ -8,6 +8,6 @@
#ifndef __ASM_DMA_H
#define __ASM_DMA_H
/* empty */
#include "asm/dma-mapping.h"
#endif /* __ASM_DMA_H */