diff mbox

[6/6] PCI: use pci_is_root_bus() in pci_common_swizzle()

Message ID 4A1B9574.3050403@jp.fujitsu.com (mailing list archive)
State Accepted, archived
Delegated to: Jesse Barnes
Headers show

Commit Message

Kenji Kaneshige May 26, 2009, 7:08 a.m. UTC
Use pci_is_root_bus() in pci_common_swizzle() for checking if the pci
bus is root, for code consistency.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>

---
 drivers/pci/pci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

Index: 20090526/drivers/pci/pci.c
===================================================================
--- 20090526.orig/drivers/pci/pci.c
+++ 20090526/drivers/pci/pci.c
@@ -1546,7 +1546,7 @@  u8 pci_common_swizzle(struct pci_dev *de
 {
 	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;
 	}