aboutsummaryrefslogtreecommitdiff
path: root/drivers/iommu/tegra-gart.c
diff options
context:
space:
mode:
authorGravatar Robin Murphy <robin.murphy@arm.com> 2022-06-21 16:14:26 +0100
committerGravatar Joerg Roedel <jroedel@suse.de> 2022-07-06 12:55:53 +0200
commitb321a2fba2734cbac799034081e20dcdb321ef4f (patch)
treeb22d084945c6411de221e30b4aa972ef9fee1fc8 /drivers/iommu/tegra-gart.c
parentiommu: Use dev_iommu_ops() for probe_finalize (diff)
downloadlinux-b321a2fba2734cbac799034081e20dcdb321ef4f.tar.gz
linux-b321a2fba2734cbac799034081e20dcdb321ef4f.tar.bz2
linux-b321a2fba2734cbac799034081e20dcdb321ef4f.zip
iommu: Make .release_device optional
Many drivers do nothing meaningful for .release_device, and it's neatly abstracted to just two callsites in the core code, so let's make it optional to implement. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/bda9d3eb4527eac8f6544a15067e2529cca54a2e.1655822151.git.robin.murphy@arm.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/tegra-gart.c')
-rw-r--r--drivers/iommu/tegra-gart.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c
index a6700a40a6f8..e5ca3cf1a949 100644
--- a/drivers/iommu/tegra-gart.c
+++ b/drivers/iommu/tegra-gart.c
@@ -246,10 +246,6 @@ static struct iommu_device *gart_iommu_probe_device(struct device *dev)
return &gart_handle->iommu;
}
-static void gart_iommu_release_device(struct device *dev)
-{
-}
-
static int gart_iommu_of_xlate(struct device *dev,
struct of_phandle_args *args)
{
@@ -273,7 +269,6 @@ static void gart_iommu_sync(struct iommu_domain *domain,
static const struct iommu_ops gart_iommu_ops = {
.domain_alloc = gart_iommu_domain_alloc,
.probe_device = gart_iommu_probe_device,
- .release_device = gart_iommu_release_device,
.device_group = generic_device_group,
.pgsize_bitmap = GART_IOMMU_PGSIZES,
.of_xlate = gart_iommu_of_xlate,