summaryrefslogtreecommitdiffstats
path: root/arch/mips/lib
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-03-13 11:56:44 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-03-29 08:16:36 +0200
commit20c9325c6201de9287910756f6794ba03fd03c82 (patch)
treeaf728d54eb3bb5ea9609723994736ae22d17158f /arch/mips/lib
parent548a574e370f046d09443bc29b210c2c294fa532 (diff)
downloadbarebox-20c9325c6201de9287910756f6794ba03fd03c82.tar.gz
barebox-20c9325c6201de9287910756f6794ba03fd03c82.tar.xz
dma: Use dma_addr_t as type for DMA addresses
DMA addresses are not necessarily the same as unsigned long. Fix the type for the dma_sync_single_* operations. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/lib')
-rw-r--r--arch/mips/lib/dma-default.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/lib/dma-default.c b/arch/mips/lib/dma-default.c
index 9b2fe7d410..71c1e423b7 100644
--- a/arch/mips/lib/dma-default.c
+++ b/arch/mips/lib/dma-default.c
@@ -44,13 +44,13 @@ static inline void __dma_sync_mips(void *addr, size_t size,
}
#endif
-void dma_sync_single_for_cpu(unsigned long address, size_t size,
+void dma_sync_single_for_cpu(dma_addr_t address, size_t size,
enum dma_data_direction dir)
{
__dma_sync_mips(address, size, dir);
}
-void dma_sync_single_for_device(unsigned long address, size_t size,
+void dma_sync_single_for_device(dma_addr_t address, size_t size,
enum dma_data_direction dir)
{
__dma_sync_mips(address, size, dir);