From: Kenji Kaneshige Date: Tue, 26 May 2009 07:06:48 +0000 (+0900) Subject: PCI: use pci_is_root_bus() in pci_read_bridge_bases() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=9fc39256508c18d2861de11622183dfb6e79de87;p=deliverable%2Flinux.git PCI: use pci_is_root_bus() in pci_read_bridge_bases() Use pci_is_root_bus() in pci_read_bridge_bases() to check if the pci bus is root, for code consistency. Reviewed-by: Alex Chiang Reviewed-by: Grant Grundler Signed-off-by: Kenji Kaneshige Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index b962326e3d95..40e75f6a5056 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -289,7 +289,7 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child) 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) {