mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 17:17:04 -04:00
PCI: shpchp: Use pci_is_bridge() to simplify code
Use pci_is_bridge() to simplify code. No functional change. Requires:326c1cdae7PCI: Rename pci_is_bridge() to pci_has_subordinate() Requires:1c86438c94PCI: Add new pci_is_bridge() interface Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
committed by
Bjorn Helgaas
parent
f86e1f152e
commit
087cfa93e0
@@ -64,8 +64,7 @@ int __ref shpchp_configure_device(struct slot *p_slot)
|
||||
list_for_each_entry(dev, &parent->devices, bus_list) {
|
||||
if (PCI_SLOT(dev->devfn) != p_slot->device)
|
||||
continue;
|
||||
if ((dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) ||
|
||||
(dev->hdr_type == PCI_HEADER_TYPE_CARDBUS))
|
||||
if (pci_is_bridge(dev))
|
||||
pci_hp_add_bridge(dev);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user