aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
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 70b3b44a8b6c..8ea911e55722 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -1549,7 +1549,7 @@ u8 pci_common_swizzle(struct pci_dev *dev, u8 *pinp)
1549{ 1549{
1550 u8 pin = *pinp; 1550 u8 pin = *pinp;
1551 1551
1552 while (dev->bus->parent) { 1552 while (!pci_is_root_bus(dev->bus)) {
1553 pin = pci_swizzle_interrupt_pin(dev, pin); 1553 pin = pci_swizzle_interrupt_pin(dev, pin);
1554 dev = dev->bus->self; 1554 dev = dev->bus->self;
1555 } 1555 }