include: asm: dma-mapping: get rid of the compilation warning in udc-core
Fixed the following warning here. "warning: ‘dma_alloc_coherent’ defined but not used" while compiling udc-core Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
This commit is contained in:
parent
103fa06cfe
commit
aecbf87965
|
@ -14,7 +14,7 @@ enum dma_data_direction {
|
||||||
DMA_FROM_DEVICE = 2,
|
DMA_FROM_DEVICE = 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void *dma_alloc_coherent(size_t len, unsigned long *handle)
|
static inline void *dma_alloc_coherent(size_t len, unsigned long *handle)
|
||||||
{
|
{
|
||||||
*handle = (unsigned long)memalign(ARCH_DMA_MINALIGN, len);
|
*handle = (unsigned long)memalign(ARCH_DMA_MINALIGN, len);
|
||||||
return (void *)*handle;
|
return (void *)*handle;
|
||||||
|
|
Loading…
Reference in New Issue