diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2019-05-25 08:41:33 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-05-28 11:19:12 +0300 |
commit | 4ec066c7b1476e0ca66a7acdb575627a5d1a1ee6 (patch) | |
tree | 3ed736b4e080056c50664822590f251ec2527196 /include/linux/intel-iommu.h | |
parent | 8af46c784ecfe8929f66b5eaae987f6874953226 (diff) | |
download | linux-4ec066c7b1476e0ca66a7acdb575627a5d1a1ee6.tar.xz |
iommu/vt-d: Cleanup get_valid_domain_for_dev()
Previously, get_valid_domain_for_dev() is used to retrieve the
DMA domain which has been attached to the device or allocate one
if no domain has been attached yet. As we have delegated the DMA
domain management to upper layer, this function is used purely to
allocate a private DMA domain if the default domain doesn't work
for ths device. Cleanup the code for readability.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/intel-iommu.h')
-rw-r--r-- | include/linux/intel-iommu.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index 4140726867a9..5b961c8ca64c 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h @@ -660,7 +660,6 @@ extern int qi_submit_sync(struct qi_desc *desc, struct intel_iommu *iommu); extern int dmar_ir_support(void); -struct dmar_domain *get_valid_domain_for_dev(struct device *dev); void *alloc_pgtable_page(int node); void free_pgtable_page(void *vaddr); struct intel_iommu *domain_get_iommu(struct dmar_domain *domain); |