mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
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>
This commit is contained in:
parent
9fc3925650
commit
8784fd4d49
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user