Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3af16633 authored by Patrick Daly's avatar Patrick Daly
Browse files

iommu: dma-mapping-fast: Use proper function to get private data



Private data is no longer stored in dev->archdata.

Change-Id: Ic720eb2764ae41afa113af8763a429f8a5591de4
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent f05af998
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -398,7 +398,7 @@ static void fast_smmu_sync_sg_for_cpu(struct device *dev,
{
{
	struct scatterlist *sg;
	struct scatterlist *sg;
	dma_addr_t iova = sg_dma_address(sgl);
	dma_addr_t iova = sg_dma_address(sgl);
	struct dma_fast_smmu_mapping *mapping = dev->archdata.mapping->fast;
	struct dma_fast_smmu_mapping *mapping = dev_get_mapping(dev);
	int i;
	int i;


	if (av8l_fast_iova_coherent_public(mapping->pgtbl_ops, iova))
	if (av8l_fast_iova_coherent_public(mapping->pgtbl_ops, iova))
@@ -414,7 +414,7 @@ static void fast_smmu_sync_sg_for_device(struct device *dev,
{
{
	struct scatterlist *sg;
	struct scatterlist *sg;
	dma_addr_t iova = sg_dma_address(sgl);
	dma_addr_t iova = sg_dma_address(sgl);
	struct dma_fast_smmu_mapping *mapping = dev->archdata.mapping->fast;
	struct dma_fast_smmu_mapping *mapping = dev_get_mapping(dev);
	int i;
	int i;


	if (av8l_fast_iova_coherent_public(mapping->pgtbl_ops, iova))
	if (av8l_fast_iova_coherent_public(mapping->pgtbl_ops, iova))