iommu/vt-d: Split iommu_prepare_identity_map
authorJoerg Roedel <jroedel@suse.de>
Wed, 23 Sep 2015 17:00:10 +0000 (19:00 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 5 Oct 2015 15:38:47 +0000 (17:38 +0200)
commitd66ce54b4664a0d66429a4de996741581d71cf90
tree8fe4f8130ca3037d959d912b6c9535aa9f7bb50d
parent9ffecb10283508260936b96022d4ee43a7798b4c
iommu/vt-d: Split iommu_prepare_identity_map

Split the part of the function that fetches the domain out
and put the rest into into a domain_prepare_identity_map, so
that the code can also be used with when the domain is
already known.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c