aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/intr_remapping.c
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2009-11-11 00:36:17 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-11-24 18:25:16 -0500
commit5f4d91a1228ac85c75b099efd36fff1a3407335c (patch)
treeed0d13811c60bf3357ef70ea2931e29a358ed023 /drivers/pci/intr_remapping.c
parent7eb776c42e75d17bd8107a1359068d8c742639d1 (diff)
PCI: use pci_is_pcie() in pci core
Change for PCI core to use pci_is_pcie() instead of checking pci_dev->is_pcie. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/intr_remapping.c')
-rw-r--r--drivers/pci/intr_remapping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/intr_remapping.c b/drivers/pci/intr_remapping.c
index 0ed78a764ded..3e6d8d79a09d 100644
--- a/drivers/pci/intr_remapping.c
+++ b/drivers/pci/intr_remapping.c
@@ -478,7 +478,7 @@ int set_msi_sid(struct irte *irte, struct pci_dev *dev)
478 return -1; 478 return -1;
479 479
480 /* PCIe device or Root Complex integrated PCI device */ 480 /* PCIe device or Root Complex integrated PCI device */
481 if (dev->is_pcie || !dev->bus->parent) { 481 if (pci_is_pcie(dev) || !dev->bus->parent) {
482 set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_ALL_16, 482 set_irte_sid(irte, SVT_VERIFY_SID_SQ, SQ_ALL_16,
483 (dev->bus->number << 8) | dev->devfn); 483 (dev->bus->number << 8) | dev->devfn);
484 return 0; 484 return 0;
@@ -486,7 +486,7 @@ int set_msi_sid(struct irte *irte, struct pci_dev *dev)
486 486
487 bridge = pci_find_upstream_pcie_bridge(dev); 487 bridge = pci_find_upstream_pcie_bridge(dev);
488 if (bridge) { 488 if (bridge) {
489 if (bridge->is_pcie) /* this is a PCIE-to-PCI/PCIX bridge */ 489 if (pci_is_pcie(bridge))/* this is a PCIE-to-PCI/PCIX bridge */
490 set_irte_sid(irte, SVT_VERIFY_BUS, SQ_ALL_16, 490 set_irte_sid(irte, SVT_VERIFY_BUS, SQ_ALL_16,
491 (bridge->bus->number << 8) | dev->bus->number); 491 (bridge->bus->number << 8) | dev->bus->number);
492 else /* this is a legacy PCI bridge */ 492 else /* this is a legacy PCI bridge */