diff options
Diffstat (limited to 'drivers/pci/intr_remapping.c')
-rw-r--r-- | drivers/pci/intr_remapping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/intr_remapping.c b/drivers/pci/intr_remapping.c index 3b3658669bee..1487bf2be863 100644 --- a/drivers/pci/intr_remapping.c +++ b/drivers/pci/intr_remapping.c | |||
@@ -520,7 +520,7 @@ int set_msi_sid(struct irte *irte, struct pci_dev *dev) | |||
520 | return -1; | 520 | return -1; |
521 | 521 | ||
522 | /* PCIe device or Root Complex integrated PCI device */ | 522 | /* PCIe device or Root Complex integrated PCI device */ |
523 | if (dev->is_pcie || !dev->bus->parent) { | 523 | if (pci_is_pcie(dev) || !dev->bus->parent) { |
524 | set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_ALL_16, | 524 | set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_ALL_16, |
525 | (dev->bus->number << 8) | dev->devfn); | 525 | (dev->bus->number << 8) | dev->devfn); |
526 | return 0; | 526 | return 0; |
@@ -528,7 +528,7 @@ int set_msi_sid(struct irte *irte, struct pci_dev *dev) | |||
528 | 528 | ||
529 | bridge = pci_find_upstream_pcie_bridge(dev); | 529 | bridge = pci_find_upstream_pcie_bridge(dev); |
530 | if (bridge) { | 530 | if (bridge) { |
531 | if (bridge->is_pcie) /* this is a PCIE-to-PCI/PCIX bridge */ | 531 | if (pci_is_pcie(bridge))/* this is a PCIE-to-PCI/PCIX bridge */ |
532 | set_irte_sid(irte, SVT_VERIFY_BUS, SQ_ALL_16, | 532 | set_irte_sid(irte, SVT_VERIFY_BUS, SQ_ALL_16, |
533 | (bridge->bus->number << 8) | dev->bus->number); | 533 | (bridge->bus->number << 8) | dev->bus->number); |
534 | else /* this is a legacy PCI bridge */ | 534 | else /* this is a legacy PCI bridge */ |