iommu: Make .release_device optional
authorRobin Murphy <robin.murphy@arm.com>
Tue, 21 Jun 2022 15:14:26 +0000 (16:14 +0100)
committerJoerg Roedel <jroedel@suse.de>
Wed, 6 Jul 2022 10:55:53 +0000 (12:55 +0200)
commitb321a2fba2734cbac799034081e20dcdb321ef4f
treeb22d084945c6411de221e30b4aa972ef9fee1fc8
parente63cfb5faac57056eeed22d78ee1c8f7a4ddbef2
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>
drivers/iommu/fsl_pamu_domain.c
drivers/iommu/iommu.c
drivers/iommu/msm_iommu.c
drivers/iommu/sun50i-iommu.c
drivers/iommu/tegra-gart.c
drivers/iommu/tegra-smmu.c