aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index bccc27ee1030..f1f9bd10103d 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -516,8 +516,7 @@ static void __ref enable_slot(struct acpiphp_slot *slot)
516 if (PCI_SLOT(dev->devfn) != slot->device) 516 if (PCI_SLOT(dev->devfn) != slot->device)
517 continue; 517 continue;
518 518
519 if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE || 519 if (pci_is_bridge(dev)) {
520 dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) {
521 max = pci_scan_bridge(bus, dev, max, pass); 520 max = pci_scan_bridge(bus, dev, max, pass);
522 if (pass && dev->subordinate) { 521 if (pass && dev->subordinate) {
523 check_hotplug_bridge(slot, dev); 522 check_hotplug_bridge(slot, dev);