mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
7eb776c42e
commit
5f4d91a122
7 changed files with 16 additions and 16 deletions
|
@ -26,14 +26,14 @@ pci_find_upstream_pcie_bridge(struct pci_dev *pdev)
|
|||
{
|
||||
struct pci_dev *tmp = NULL;
|
||||
|
||||
if (pdev->is_pcie)
|
||||
if (pci_is_pcie(pdev))
|
||||
return NULL;
|
||||
while (1) {
|
||||
if (pci_is_root_bus(pdev->bus))
|
||||
break;
|
||||
pdev = pdev->bus->self;
|
||||
/* a p2p bridge */
|
||||
if (!pdev->is_pcie) {
|
||||
if (!pci_is_pcie(pdev)) {
|
||||
tmp = pdev;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue