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:
parent
394a3533a8
commit
6c583d0e32
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
#ifndef __ASM_DMA_H
|
||||
#define __ASM_DMA_H
|
||||
|
||||
/* empty */
|
||||
#include "asm/dma-mapping.h"
|
||||
|
||||
#endif /* __ASM_DMA_H */
|
||||
|
|
Loading…
Reference in New Issue