diff options
author | Robin Murphy <robin.murphy@arm.com> | 2022-06-21 17:14:26 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-07-06 12:55:53 +0200 |
commit | b321a2fba2734cbac799034081e20dcdb321ef4f (patch) | |
tree | b22d084945c6411de221e30b4aa972ef9fee1fc8 /drivers/iommu/fsl_pamu_domain.c | |
parent | iommu: Use dev_iommu_ops() for probe_finalize (diff) | |
download | linux-b321a2fba2734cbac799034081e20dcdb321ef4f.tar.xz 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/fsl_pamu_domain.c')
-rw-r--r-- | drivers/iommu/fsl_pamu_domain.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/iommu/fsl_pamu_domain.c b/drivers/iommu/fsl_pamu_domain.c index 94b4589dc67c..011f9ab7f743 100644 --- a/drivers/iommu/fsl_pamu_domain.c +++ b/drivers/iommu/fsl_pamu_domain.c @@ -447,15 +447,10 @@ static struct iommu_device *fsl_pamu_probe_device(struct device *dev) return &pamu_iommu; } -static void fsl_pamu_release_device(struct device *dev) -{ -} - static const struct iommu_ops fsl_pamu_ops = { .capable = fsl_pamu_capable, .domain_alloc = fsl_pamu_domain_alloc, .probe_device = fsl_pamu_probe_device, - .release_device = fsl_pamu_release_device, .device_group = fsl_pamu_device_group, .default_domain_ops = &(const struct iommu_domain_ops) { .attach_dev = fsl_pamu_attach_device, |