Commit 5ad5f667 authored by Robin Murphy's avatar Robin Murphy Committed by Joerg Roedel
Browse files

iommu/sprd: Drop IOVA cookie management

parent b811a451
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@

#include <linux/clk.h>
#include <linux/device.h>
#include <linux/dma-iommu.h>
#include <linux/dma-mapping.h>
#include <linux/errno.h>
#include <linux/iommu.h>
@@ -144,11 +143,6 @@ static struct iommu_domain *sprd_iommu_domain_alloc(unsigned int domain_type)
	if (!dom)
		return NULL;

	if (iommu_get_dma_cookie(&dom->domain)) {
		kfree(dom);
		return NULL;
	}

	spin_lock_init(&dom->pgtlock);

	dom->domain.geometry.aperture_start = 0;
@@ -161,7 +155,6 @@ static void sprd_iommu_domain_free(struct iommu_domain *domain)
{
	struct sprd_iommu_domain *dom = to_sprd_domain(domain);

	iommu_put_dma_cookie(domain);
	kfree(dom);
}