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

Commit 4ee91b18 authored by Patrick Daly's avatar Patrick Daly
Browse files

arm64: dma-mapping: Remove duplicate code



The default definition of dma_set_mask in dma-mapping.h is exactly
identical to the definition in dma-mapping.c.

Change-Id: I1443c348c87061146b9c01eb9ac364658afe4bb8
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent a3ba7da6
Loading
Loading
Loading
Loading
+0 −11
Original line number Original line Diff line number Diff line
@@ -1153,16 +1153,6 @@ static void __dma_page_dev_to_cpu(struct page *page, unsigned long off,
		set_bit(PG_dcache_clean, &page->flags);
		set_bit(PG_dcache_clean, &page->flags);
}
}


static int arm_dma_set_mask(struct device *dev, u64 dma_mask)
{
	if (!dev->dma_mask || !dma_supported(dev, dma_mask))
		return -EIO;

	*dev->dma_mask = dma_mask;

	return 0;
}

/* IOMMU */
/* IOMMU */


static void __dma_clear_buffer(struct page *page, size_t size,
static void __dma_clear_buffer(struct page *page, size_t size,
@@ -1913,7 +1903,6 @@ const struct dma_map_ops iommu_ops = {
	.map_resource		= arm_iommu_dma_map_resource,
	.map_resource		= arm_iommu_dma_map_resource,
	.unmap_resource		= arm_iommu_dma_unmap_resource,
	.unmap_resource		= arm_iommu_dma_unmap_resource,


	.set_dma_mask		= arm_dma_set_mask,
	.mapping_error		= arm_iommu_mapping_error,
	.mapping_error		= arm_iommu_mapping_error,
};
};