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:
Jani Paalijarvi 2024-05-07 14:07:02 +03:00 committed by Xiang Xiao
parent c11ffaa78f
commit 0d3a1bc617
2 changed files with 12 additions and 5 deletions

View File

@ -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 */

View File

@ -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 */