diff options
-rw-r--r-- | drivers/pci/hotplug/cpci_hotplug_pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/cpci_hotplug_pci.c b/drivers/pci/hotplug/cpci_hotplug_pci.c index 8c1464851768..98433716978a 100644 --- a/drivers/pci/hotplug/cpci_hotplug_pci.c +++ b/drivers/pci/hotplug/cpci_hotplug_pci.c | |||
@@ -289,8 +289,7 @@ int __ref cpci_configure_slot(struct slot *slot) | |||
289 | list_for_each_entry(dev, &parent->devices, bus_list) | 289 | list_for_each_entry(dev, &parent->devices, bus_list) |
290 | if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn)) | 290 | if (PCI_SLOT(dev->devfn) != PCI_SLOT(slot->devfn)) |
291 | continue; | 291 | continue; |
292 | if ((dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) || | 292 | if (pci_is_bridge(dev)) |
293 | (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS)) | ||
294 | pci_hp_add_bridge(dev); | 293 | pci_hp_add_bridge(dev); |
295 | 294 | ||
296 | 295 | ||