Commit 7207d8f9 authored by David Woodhouse's avatar David Woodhouse

iommu/vt-d: Remove pdev from intel_iommu_attach_device()

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent ecb509ec
...@@ -4147,13 +4147,12 @@ static int intel_iommu_attach_device(struct iommu_domain *domain, ...@@ -4147,13 +4147,12 @@ static int intel_iommu_attach_device(struct iommu_domain *domain,
struct device *dev) struct device *dev)
{ {
struct dmar_domain *dmar_domain = domain->priv; struct dmar_domain *dmar_domain = domain->priv;
struct pci_dev *pdev = to_pci_dev(dev);
struct intel_iommu *iommu; struct intel_iommu *iommu;
int addr_width; int addr_width;
u8 bus, devfn; u8 bus, devfn;
/* normally pdev is not mapped */ /* normally dev is not mapped */
if (unlikely(domain_context_mapped(&pdev->dev))) { if (unlikely(domain_context_mapped(dev))) {
struct dmar_domain *old_domain; struct dmar_domain *old_domain;
old_domain = find_domain(dev); old_domain = find_domain(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment