Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fc39256 authored by Kenji Kaneshige's avatar Kenji Kaneshige Committed by Jesse Barnes
Browse files

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: default avatarAlex Chiang <achiang@hp.com>
Reviewed-by: default avatarGrant Grundler <grundler@parisc-linux.org>
Signed-off-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 6e3f36df
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -289,7 +289,7 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child)
	struct resource *res;
	struct resource *res;
	int i;
	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;
		return;


	if (dev->transparent) {
	if (dev->transparent) {