aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2009-05-26 03:07:33 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-06-16 17:29:31 -0400
commit8784fd4d497171882319e4b513f5a5949fc8ab43 (patch)
treea3cffbfce49e21b00dcebfeab8bc0c2ebd004c20 /drivers/pci/pci.c
parent9fc39256508c18d2861de11622183dfb6e79de87 (diff)
PCI: use pci_is_root_bus() in pci_get_interrupt_pin()
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>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 56fb18d2cb52..70b3b44a8b6c 100644
--- 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)
1529 if (!pin) 1529 if (!pin)
1530 return -1; 1530 return -1;
1531 1531
1532 while (dev->bus->parent) { 1532 while (!pci_is_root_bus(dev->bus)) {
1533 pin = pci_swizzle_interrupt_pin(dev, pin); 1533 pin = pci_swizzle_interrupt_pin(dev, pin);
1534 dev = dev->bus->self; 1534 dev = dev->bus->self;
1535 } 1535 }