From: Robin Murphy Date: Mon, 13 Sep 2021 12:40:05 +0000 (+0100) Subject: iommu/dart: Clean up IOVA cookie crumbs X-Git-Tag: v6.1-rc5~2725^2^4~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2b2781a9755bf18987647bb8cdf6a7d5b5d34c2;p=platform%2Fkernel%2Flinux-starfive.git iommu/dart: Clean up IOVA cookie crumbs The addition of the DART driver crossed over with moving IOVA cookie management into core code; clean up the now-unnecessary remnants here. Acked-by: Sven Peter Tested-by: Sven Peter Signed-off-by: Robin Murphy Link: https://lore.kernel.org/r/edb72b4965baa8999dd70b8294785d6deebd4183.1631531973.git.robin.murphy@arm.com Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/apple-dart.c b/drivers/iommu/apple-dart.c index 559db92..cdc2e83 100644 --- a/drivers/iommu/apple-dart.c +++ b/drivers/iommu/apple-dart.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -596,7 +595,6 @@ static struct iommu_domain *apple_dart_domain_alloc(unsigned int type) if (!dart_domain) return NULL; - iommu_get_dma_cookie(&dart_domain->domain); mutex_init(&dart_domain->init_lock); /* no need to allocate pgtbl_ops or do any other finalization steps */