iommu/vt-d: Move deferred device attachment into helper function
authorJoerg Roedel <jroedel@suse.de>
Mon, 17 Feb 2020 16:16:19 +0000 (17:16 +0100)
committerJoerg Roedel <jroedel@suse.de>
Tue, 18 Feb 2020 16:21:51 +0000 (17:21 +0100)
commit034d98cc0cdcde2415c6f598fa9125e3eaa02569
tree4121e19bedab115b60585bc606170d065c8c6060
parent1d4615978f525b769990a4a4ef22fb1b9a04cdf1
iommu/vt-d: Move deferred device attachment into helper function

Move the code that does the deferred device attachment into a separate
helper function.

Fixes: 1ee0186b9a12 ("iommu/vt-d: Refactor find_domain() helper")
Cc: stable@vger.kernel.org # v5.5
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c