iommu: Split iommu_group_remove_device() into helpers
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 22 Mar 2023 06:49:52 +0000 (14:49 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 22 Mar 2023 14:45:16 +0000 (15:45 +0100)
commit293f2564f3dd76b749fc31ae4226bd818f860e4f
tree83da1f8629637282c6f77d5b01cba39ed4af928c
parent24dfb197c3b7d274e5f78fce5e63392526a933e9
iommu: Split iommu_group_remove_device() into helpers

So that code could be re-used by iommu_release_device() in the subsequent
change. No intention for functionality change.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20230322064956.263419-3-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c