mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 13:41:55 +00:00
PCI: cpcihp: Use pci_is_bridge() to simplify code
Use pci_is_bridge() to simplify code. No functional change. Requires:326c1cdae7
PCI: Rename pci_is_bridge() to pci_has_subordinate() Requires:1c86438c94
PCI: 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:
parent
087cfa93e0
commit
5cbe5d15ae
@ -289,8 +289,7 @@ int __ref cpci_configure_slot(struct slot *slot)
|
||||
list_for_each_entry(dev, &parent->devices, bus_list)
|
||||
if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn))
|
||||
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);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user