summaryrefslogtreecommitdiffstats
path: root/lib/bch.c
diff options
context:
space:
mode:
authorWei Yang <weiyang@linux.vnet.ibm.com>2013-09-06 03:45:56 +0200
committerBjorn Helgaas <bhelgaas@google.com>2013-09-25 23:43:48 +0200
commit2ba29e270e977b213a7d58ae1152c23a1c3074a3 (patch)
tree1149e29397f0c412d716dd9174825b347e05da82 /lib/bch.c
parentPCI: Remove unused "is_pcie" from pci_dev structure (diff)
downloadlinux-2ba29e270e977b213a7d58ae1152c23a1c3074a3.tar.xz
linux-2ba29e270e977b213a7d58ae1152c23a1c3074a3.zip
PCI: Use pci_is_root_bus() to check for root bus
In __pci_bus_size_bridges() we check whether a bus is a root bus by testing bus->self. As indicated by commit 79af72d7 ("PCI: pci_is_root_bus helper"), bus->self == NULL is not a proper way to check for a root bus. One issue is that "virtual" buses added for SR-IOV (via virtfn_add_bus()) have bus->self == NULL but are not root buses. This patch changes it to pci_is_root_bus() to check whether it is a root bus. [bhelgaas: changelog] Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'lib/bch.c')
0 files changed, 0 insertions, 0 deletions