aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2020-02-14 16:40:17 +0900
committerPeng Fan <peng.fan@nxp.com>2020-02-19 21:27:30 +0800
commitc22c0dbd7d3bb7ce47779b757d567d2e7746744b (patch)
tree79b6c1d854653d19f868268a424e463d60ee6400 /arch/riscv
parentede2822864c3145859372f4ad1b82f4c98584128 (diff)
downloadu-boot-c22c0dbd7d3bb7ce47779b757d567d2e7746744b.zip
u-boot-c22c0dbd7d3bb7ce47779b757d567d2e7746744b.tar.gz
u-boot-c22c0dbd7d3bb7ce47779b757d567d2e7746744b.tar.bz2
dma-mapping: fix the prototype of dma_map_single()
Make dma_map_single() return the dma address, and remove the pointless volatile. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/include/asm/dma-mapping.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/riscv/include/asm/dma-mapping.h b/arch/riscv/include/asm/dma-mapping.h
index 6cc3946..eac56f8 100644
--- a/arch/riscv/include/asm/dma-mapping.h
+++ b/arch/riscv/include/asm/dma-mapping.h
@@ -10,6 +10,7 @@
#define __ASM_RISCV_DMA_MAPPING_H
#include <common.h>
+#include <linux/types.h>
#include <asm/cache.h>
#include <cpu_func.h>
#include <linux/dma-direction.h>
@@ -28,8 +29,8 @@ static inline void dma_free_coherent(void *addr)
free(addr);
}
-static inline unsigned long dma_map_single(volatile void *vaddr, size_t len,
- enum dma_data_direction dir)
+static inline dma_addr_t dma_map_single(void *vaddr, size_t len,
+ enum dma_data_direction dir)
{
unsigned long addr = (unsigned long)vaddr;