summaryrefslogtreecommitdiff
path: root/arch/mips/loongson64/dma.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-08-17 17:34:03 +0200
committerChristoph Hellwig <hch@lst.de>2020-09-11 09:14:43 +0200
commit5ceda74093a5c1c3f42a02b894df031f3bbc9af1 (patch)
treed16c05bab2364724baff7d1e28a71e535628250a /arch/mips/loongson64/dma.c
parent7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029 (diff)
dma-direct: rename and cleanup __phys_to_dma
The __phys_to_dma vs phys_to_dma distinction isn't exactly obvious. Try to improve the situation by renaming __phys_to_dma to phys_to_dma_unencryped, and not forcing architectures that want to override phys_to_dma to actually provide __phys_to_dma. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'arch/mips/loongson64/dma.c')
-rw-r--r--arch/mips/loongson64/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/loongson64/dma.c b/arch/mips/loongson64/dma.c
index b3dc5d0bd2b1..364f2f27c872 100644
--- a/arch/mips/loongson64/dma.c
+++ b/arch/mips/loongson64/dma.c
@@ -4,7 +4,7 @@
#include <linux/swiotlb.h>
#include <boot_param.h>
-dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr)
+dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr)
{
/* We extract 2bit node id (bit 44~47, only bit 44~45 used now) from
* Loongson-3's 48bit address space and embed it into 40bit */