diff options
author | Yijing Wang <wangyijing@huawei.com> | 2014-05-04 00:23:44 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-05-27 16:58:01 -0400 |
commit | 087cfa93e0fb5f06c0e976e6f468ffedc83b3223 (patch) | |
tree | 504204265419b509bd0f1ed433405a48b296118d /drivers/pci | |
parent | f86e1f152e949b24ef336c640009183c01cfd9bf (diff) |
PCI: shpchp: 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')
-rw-r--r-- | drivers/pci/hotplug/shpchp_pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/shpchp_pci.c b/drivers/pci/hotplug/shpchp_pci.c index 2bf69fe1926c..ea8ad313275c 100644 --- a/drivers/pci/hotplug/shpchp_pci.c +++ b/drivers/pci/hotplug/shpchp_pci.c | |||
@@ -64,8 +64,7 @@ int __ref shpchp_configure_device(struct slot *p_slot) | |||
64 | list_for_each_entry(dev, &parent->devices, bus_list) { | 64 | list_for_each_entry(dev, &parent->devices, bus_list) { |
65 | if (PCI_SLOT(dev->devfn) != p_slot->device) | 65 | if (PCI_SLOT(dev->devfn) != p_slot->device) |
66 | continue; | 66 | continue; |
67 | if ((dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) || | 67 | if (pci_is_bridge(dev)) |
68 | (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS)) | ||
69 | pci_hp_add_bridge(dev); | 68 | pci_hp_add_bridge(dev); |
70 | } | 69 | } |
71 | 70 | ||