summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2014-03-09 16:31:06 -0700
committerDavid Woodhouse <David.Woodhouse@intel.com>2014-03-24 14:08:05 +0000
commit7207d8f925a74578a544f5beff8f840cfeebd12e (patch)
treede2e3fe7bbb0822deff8421ddc96838110e07ddb /drivers/iommu
parentecb509ec2bacfe341530e56abf6bf3f20548bcd6 (diff)
downloadop-kernel-dev-7207d8f925a74578a544f5beff8f840cfeebd12e.zip
op-kernel-dev-7207d8f925a74578a544f5beff8f840cfeebd12e.tar.gz
iommu/vt-d: Remove pdev from intel_iommu_attach_device()
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/intel-iommu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 0f5e6c9..37ce54b 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -4147,13 +4147,12 @@ static int intel_iommu_attach_device(struct iommu_domain *domain,
struct device *dev)
{
struct dmar_domain *dmar_domain = domain->priv;
- struct pci_dev *pdev = to_pci_dev(dev);
struct intel_iommu *iommu;
int addr_width;
u8 bus, devfn;
- /* normally pdev is not mapped */
- if (unlikely(domain_context_mapped(&pdev->dev))) {
+ /* normally dev is not mapped */
+ if (unlikely(domain_context_mapped(dev))) {
struct dmar_domain *old_domain;
old_domain = find_domain(dev);
OpenPOWER on IntegriCloud