diff options
Diffstat (limited to 'drivers/pci/hotplug/pciehp_pci.c')
-rw-r--r-- | drivers/pci/hotplug/pciehp_pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c index 1b533060ce65..b6cb1df67097 100644 --- a/drivers/pci/hotplug/pciehp_pci.c +++ b/drivers/pci/hotplug/pciehp_pci.c | |||
@@ -62,8 +62,7 @@ int pciehp_configure_device(struct slot *p_slot) | |||
62 | } | 62 | } |
63 | 63 | ||
64 | list_for_each_entry(dev, &parent->devices, bus_list) | 64 | list_for_each_entry(dev, &parent->devices, bus_list) |
65 | if ((dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) || | 65 | if (pci_is_bridge(dev)) |
66 | (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS)) | ||
67 | pci_hp_add_bridge(dev); | 66 | pci_hp_add_bridge(dev); |
68 | 67 | ||
69 | pci_assign_unassigned_bridge_resources(bridge); | 68 | pci_assign_unassigned_bridge_resources(bridge); |