iommu: Clean up release_device checks
authorRobin Murphy <robin.murphy@arm.com>
Tue, 21 Jun 2022 15:14:27 +0000 (16:14 +0100)
committerJoerg Roedel <jroedel@suse.de>
Wed, 6 Jul 2022 10:55:53 +0000 (12:55 +0200)
commit4d26ba671e3deed010311345e4426e6e11eaaf4c
tree4bbef47511c6955e24595aac837dc5b12d63dbec
parentb321a2fba2734cbac799034081e20dcdb321ef4f
iommu: Clean up release_device checks

Since .release_device is now called through per-device ops, any call
which gets as far as a driver definitely *is* for that driver, for a
device which has successfully passed .probe_device, so all the checks to
that effect are now redundant and can be removed. In the same vein we
can also skip freeing fwspecs which are now managed by core code.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/02671dbfad7a3343fc25a44222350efcb455fe3c.1655822151.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/apple-dart.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/arm/arm-smmu/arm-smmu.c
drivers/iommu/arm/arm-smmu/qcom_iommu.c
drivers/iommu/exynos-iommu.c
drivers/iommu/mtk_iommu.c
drivers/iommu/mtk_iommu_v1.c
drivers/iommu/sprd-iommu.c
drivers/iommu/virtio-iommu.c