]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MX28: DMA: make mxs_dma_flush_desc() static
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 3 Sep 2014 08:33:54 +0000 (10:33 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 3 Sep 2014 08:33:54 +0000 (10:33 +0200)
drivers/dma/apbh_dma.c

index ef7441ce2e3be4eae1f0e4cb7d717fe8969de604..042e0ef5fb548325f7fdfe717ef7ece443cb73a4 100644 (file)
@@ -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
 
 /*