projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8784fd4
)
PCI: use pci_is_root_bus() in pci_common_swizzle()
author
Kenji Kaneshige
<kaneshige.kenji@jp.fujitsu.com>
Tue, 26 May 2009 07:08:36 +0000
(16:08 +0900)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Tue, 16 Jun 2009 21:29:32 +0000
(14:29 -0700)
Use pci_is_root_bus() in pci_common_swizzle() 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 70b3b44a8b6c713d33d940f01f594387f690ebce..8ea911e55722b520a7c253eab35146aabe1fea44 100644
(file)
--- a/
drivers/pci/pci.c
+++ b/
drivers/pci/pci.c
@@
-1549,7
+1549,7
@@
u8 pci_common_swizzle(struct pci_dev *dev, u8 *pinp)
{
u8 pin = *pinp;
- while (
dev->bus->parent
) {
+ while (
!pci_is_root_bus(dev->bus)
) {
pin = pci_swizzle_interrupt_pin(dev, pin);
dev = dev->bus->self;
}
This page took
0.025372 seconds
and
5
git commands to generate.