diff options
author | Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> | 2009-11-11 00:36:17 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-11-24 18:25:16 -0500 |
commit | 5f4d91a1228ac85c75b099efd36fff1a3407335c (patch) | |
tree | ed0d13811c60bf3357ef70ea2931e29a358ed023 /drivers/pci/pci.c | |
parent | 7eb776c42e75d17bd8107a1359068d8c742639d1 (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/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index bbc82f08d1c1..453d6ba6811e 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -1524,7 +1524,7 @@ void pci_enable_ari(struct pci_dev *dev) | |||
1524 | u16 ctrl; | 1524 | u16 ctrl; |
1525 | struct pci_dev *bridge; | 1525 | struct pci_dev *bridge; |
1526 | 1526 | ||
1527 | if (!dev->is_pcie || dev->devfn) | 1527 | if (!pci_is_pcie(dev) || dev->devfn) |
1528 | return; | 1528 | return; |
1529 | 1529 | ||
1530 | pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ARI); | 1530 | pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ARI); |
@@ -1532,7 +1532,7 @@ void pci_enable_ari(struct pci_dev *dev) | |||
1532 | return; | 1532 | return; |
1533 | 1533 | ||
1534 | bridge = dev->bus->self; | 1534 | bridge = dev->bus->self; |
1535 | if (!bridge || !bridge->is_pcie) | 1535 | if (!bridge || !pci_is_pcie(bridge)) |
1536 | return; | 1536 | return; |
1537 | 1537 | ||
1538 | pos = pci_pcie_cap(bridge); | 1538 | pos = pci_pcie_cap(bridge); |
@@ -1560,7 +1560,7 @@ void pci_enable_acs(struct pci_dev *dev) | |||
1560 | u16 cap; | 1560 | u16 cap; |
1561 | u16 ctrl; | 1561 | u16 ctrl; |
1562 | 1562 | ||
1563 | if (!dev->is_pcie) | 1563 | if (!pci_is_pcie(dev)) |
1564 | return; | 1564 | return; |
1565 | 1565 | ||
1566 | pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ACS); | 1566 | pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ACS); |