projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fc3925
)
PCI: use pci_is_root_bus() in pci_get_interrupt_pin()
author
Kenji Kaneshige
<kaneshige.kenji@jp.fujitsu.com>
Tue, 26 May 2009 07:07:33 +0000
(16:07 +0900)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Tue, 16 Jun 2009 21:29:31 +0000
(14:29 -0700)
Use pci_is_root_bus() in pci_get_interrupt_pin() for checking 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/pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/pci.c
b/drivers/pci/pci.c
index 56fb18d2cb521d09cc62b56a7e2e65d182c6607d..70b3b44a8b6c713d33d940f01f594387f690ebce 100644
(file)
--- a/
drivers/pci/pci.c
+++ b/
drivers/pci/pci.c
@@
-1529,7
+1529,7
@@
pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge)
if (!pin)
return -1;
- while (
dev->bus->parent
) {
+ while (
!pci_is_root_bus(dev->bus)
) {
pin = pci_swizzle_interrupt_pin(dev, pin);
dev = dev->bus->self;
}