From 24e3d767d884d9203a036e9b18876ffcf2086ae2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Wed, 3 Sep 2014 10:33:54 +0200 Subject: [PATCH] MX28: DMA: make mxs_dma_flush_desc() static --- drivers/dma/apbh_dma.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c index ef7441ce2e..042e0ef5fb 100644 --- a/drivers/dma/apbh_dma.c +++ b/drivers/dma/apbh_dma.c @@ -86,7 +86,7 @@ static int mxs_dma_read_semaphore(int channel) } #ifndef CONFIG_SYS_DCACHE_OFF -void mxs_dma_flush_desc(struct mxs_dma_desc *desc) +static void mxs_dma_flush_desc(struct mxs_dma_desc *desc) { uint32_t addr; uint32_t size; @@ -97,7 +97,9 @@ void mxs_dma_flush_desc(struct mxs_dma_desc *desc) flush_dcache_range(addr, addr + size); } #else -inline void mxs_dma_flush_desc(struct mxs_dma_desc *desc) {} +static inline void mxs_dma_flush_desc(struct mxs_dma_desc *desc) +{ +} #endif /* -- 2.39.2