diff options
author | Yijing Wang <wangyijing@huawei.com> | 2014-05-04 12:23:38 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-05-27 14:53:41 -0600 |
commit | 6788a51fe3391817c8ded5f43dd4c57f3d212c17 (patch) | |
tree | 499f69d27cb71ccdd3127cc030e2bf96e1fcbe02 /drivers/pci/probe.c | |
parent | 1c86438c9423a26cc9f7f74a8950d9cf9c93bc23 (diff) | |
download | linux-6788a51fe3391817c8ded5f43dd4c57f3d212c17.tar.gz linux-6788a51fe3391817c8ded5f43dd4c57f3d212c17.tar.bz2 linux-6788a51fe3391817c8ded5f43dd4c57f3d212c17.zip |
PCI: Use pci_is_bridge() to simplify code
Use pci_is_bridge() to simplify code. No functional change.
Requires: 326c1cdae741 PCI: Rename pci_is_bridge() to pci_has_subordinate()
Requires: 1c86438c9423 PCI: Add new pci_is_bridge() interface
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index ef09f5f2fe6c..f831dd80fa2d 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1670,8 +1670,7 @@ unsigned int pci_scan_child_bus(struct pci_bus *bus) for (pass=0; pass < 2; pass++) list_for_each_entry(dev, &bus->devices, bus_list) { - if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE || - dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) + if (pci_is_bridge(dev)) max = pci_scan_bridge(bus, dev, max, pass); } |