diff options
-rw-r--r-- | drivers/pci/pci.c | 2 |
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 | } |