Skip to content

Commit

Permalink
iommu/vt-d: Make identity_mapping() take struct device not struct pci…
Browse files Browse the repository at this point in the history
…_dev

Signed-off-by: David Woodhouse <[email protected]>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Mar 24, 2014
1 parent 41e80dc commit 9b22662
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/iommu/intel-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2439,14 +2439,14 @@ static int __init si_domain_init(int hw)
return 0;
}

static int identity_mapping(struct pci_dev *pdev)
static int identity_mapping(struct device *dev)
{
struct device_domain_info *info;

if (likely(!iommu_identity_mapping))
return 0;

info = pdev->dev.archdata.iommu;
info = dev->archdata.iommu;
if (info && info != DUMMY_DEVICE_DOMAIN_INFO)
return (info->domain == si_domain);

Expand Down Expand Up @@ -2903,7 +2903,7 @@ static int iommu_no_mapping(struct device *dev)
return 0;

pdev = to_pci_dev(dev);
found = identity_mapping(pdev);
found = identity_mapping(dev);
if (found) {
if (iommu_should_identity_map(pdev, 0))
return 1;
Expand Down

0 comments on commit 9b22662

Please sign in to comment.