diff mbox

[4/6] PCI: use pci_is_root_bus() in pci_read_bridge_bases()

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

Commit Message

Kenji Kaneshige May 26, 2009, 7:06 a.m. UTC
Use pci_is_root_bus() in pci_read_bridge_pases() to check if the pci
bus is root, for code consistency.

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

---
 drivers/pci/probe.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/probe.c
===================================================================
--- 20090526.orig/drivers/pci/probe.c
+++ 20090526/drivers/pci/probe.c
@@ -289,7 +289,7 @@  void __devinit pci_read_bridge_bases(str
 	struct resource *res;
 	int i;
 
-	if (!child->parent)	/* It's a host bus, nothing to read */
+	if (pci_is_root_bus(child))	/* It's a host bus, nothing to read */
 		return;
 
 	if (dev->transparent) {