projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a222b8f
)
PCI: use pci_is_root_bus() in pci_find_upstream_pcie_bridge()
author
Kenji Kaneshige
<kaneshige.kenji@jp.fujitsu.com>
Tue, 26 May 2009 07:06:10 +0000
(16:06 +0900)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Tue, 16 Jun 2009 21:29:30 +0000
(14:29 -0700)
Use pci_is_root_bus() in pci_find_upstream_pcie_bridge() to check if
the pci bus is root, for code consistency.
Reviewed-by: Alex Chiang <achiang@hp.com>
Reviewed-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/search.c
patch
|
blob
|
history
diff --git
a/drivers/pci/search.c
b/drivers/pci/search.c
index 650bc0a538dc3652d296bc0b003efecd3877952b..e8cb5051c31163536d23880e8a82a66c0577c3b4 100644
(file)
--- a/
drivers/pci/search.c
+++ b/
drivers/pci/search.c
@@
-29,7
+29,7
@@
pci_find_upstream_pcie_bridge(struct pci_dev *pdev)
if (pdev->is_pcie)
return NULL;
while (1) {
- if (
!pdev->bus->parent
)
+ if (
pci_is_root_bus(pdev->bus)
)
break;
pdev = pdev->bus->self;
/* a p2p bridge */