arm64/imx9: Fix fat_dma_ macro issue.
Defining fat_dma_alloc(s) as imx9_dma_alloc(s) causes compiler errors. Signed-off-by: Jani Paalijarvi <jani.paalijarvi@unikie.com>
This commit is contained in:
parent
c11ffaa78f
commit
0d3a1bc617
@ -142,4 +142,16 @@ void imx9_dma_free(void *memory, size_t size)
|
||||
gran_free(dma_allocator, memory, size);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_FAT_DMAMEMORY
|
||||
FAR void *fat_dma_alloc(size_t size)
|
||||
{
|
||||
return imx9_dma_alloc(size);
|
||||
}
|
||||
|
||||
void fat_dma_free(FAR void *memory, size_t size)
|
||||
{
|
||||
imx9_dma_free(memory, size);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_IMX9_DMA_ALLOC */
|
||||
|
@ -80,9 +80,4 @@ void *imx9_dma_alloc(size_t size);
|
||||
|
||||
void imx9_dma_free(void *memory, size_t size);
|
||||
|
||||
#ifdef CONFIG_FAT_DMAMEMORY
|
||||
# define fat_dma_alloc(s) imx9_dma_alloc(s)
|
||||
# define fat_dma_free(m,s) imx9_dma_free(m,s)
|
||||
#endif
|
||||
|
||||
#endif /* __ARCH_ARM64_SRC_IMX9_IMX9_DMA_ALLOC_H */
|
||||
|
Loading…
Reference in New Issue
Block a user