aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm/dma-mapping.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/mm/dma-mapping.c')
-rw-r--r--arch/arm64/mm/dma-mapping.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c
index bcef6368d48f..dbab4c6c084b 100644
--- a/arch/arm64/mm/dma-mapping.c
+++ b/arch/arm64/mm/dma-mapping.c
@@ -837,7 +837,7 @@ static bool do_iommu_attach(struct device *dev, const struct iommu_ops *ops,
837 return false; 837 return false;
838 } 838 }
839 839
840 dev->archdata.dma_ops = &iommu_dma_ops; 840 dev->dma_ops = &iommu_dma_ops;
841 return true; 841 return true;
842} 842}
843 843
@@ -941,7 +941,7 @@ static void __iommu_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
941 941
942void arch_teardown_dma_ops(struct device *dev) 942void arch_teardown_dma_ops(struct device *dev)
943{ 943{
944 dev->archdata.dma_ops = NULL; 944 dev->dma_ops = NULL;
945} 945}
946 946
947#else 947#else
@@ -955,8 +955,8 @@ static void __iommu_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
955void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, 955void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
956 const struct iommu_ops *iommu, bool coherent) 956 const struct iommu_ops *iommu, bool coherent)
957{ 957{
958 if (!dev->archdata.dma_ops) 958 if (!dev->dma_ops)
959 dev->archdata.dma_ops = &swiotlb_dma_ops; 959 dev->dma_ops = &swiotlb_dma_ops;
960 960
961 dev->archdata.dma_coherent = coherent; 961 dev->archdata.dma_coherent = coherent;
962 __iommu_setup_dma_ops(dev, dma_base, size, iommu); 962 __iommu_setup_dma_ops(dev, dma_base, size, iommu);