aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/intel-iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r--drivers/iommu/intel-iommu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 2297ec193eb4..db820d7dd0bc 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -2351,7 +2351,7 @@ static int iommu_should_identity_map(struct pci_dev *pdev, int startup)
2351 return 0; 2351 return 0;
2352 if (pdev->class >> 8 == PCI_CLASS_BRIDGE_PCI) 2352 if (pdev->class >> 8 == PCI_CLASS_BRIDGE_PCI)
2353 return 0; 2353 return 0;
2354 } else if (pdev->pcie_type == PCI_EXP_TYPE_PCI_BRIDGE) 2354 } else if (pci_pcie_type(pdev) == PCI_EXP_TYPE_PCI_BRIDGE)
2355 return 0; 2355 return 0;
2356 2356
2357 /* 2357 /*
@@ -3546,10 +3546,10 @@ found:
3546 struct pci_dev *bridge = bus->self; 3546 struct pci_dev *bridge = bus->self;
3547 3547
3548 if (!bridge || !pci_is_pcie(bridge) || 3548 if (!bridge || !pci_is_pcie(bridge) ||
3549 bridge->pcie_type == PCI_EXP_TYPE_PCI_BRIDGE) 3549 pci_pcie_type(bridge) == PCI_EXP_TYPE_PCI_BRIDGE)
3550 return 0; 3550 return 0;
3551 3551
3552 if (bridge->pcie_type == PCI_EXP_TYPE_ROOT_PORT) { 3552 if (pci_pcie_type(bridge) == PCI_EXP_TYPE_ROOT_PORT) {
3553 for (i = 0; i < atsru->devices_cnt; i++) 3553 for (i = 0; i < atsru->devices_cnt; i++)
3554 if (atsru->devices[i] == bridge) 3554 if (atsru->devices[i] == bridge)
3555 return 1; 3555 return 1;