diff options
Diffstat (limited to 'drivers/pci/hotplug/acpiphp_glue.c')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index bccc27ee1030..75e178330215 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -41,7 +41,6 @@ | |||
41 | 41 | ||
42 | #define pr_fmt(fmt) "acpiphp_glue: " fmt | 42 | #define pr_fmt(fmt) "acpiphp_glue: " fmt |
43 | 43 | ||
44 | #include <linux/init.h> | ||
45 | #include <linux/module.h> | 44 | #include <linux/module.h> |
46 | 45 | ||
47 | #include <linux/kernel.h> | 46 | #include <linux/kernel.h> |
@@ -501,7 +500,7 @@ static int acpiphp_rescan_slot(struct acpiphp_slot *slot) | |||
501 | * This function should be called per *physical slot*, | 500 | * This function should be called per *physical slot*, |
502 | * not per each slot object in ACPI namespace. | 501 | * not per each slot object in ACPI namespace. |
503 | */ | 502 | */ |
504 | static void __ref enable_slot(struct acpiphp_slot *slot) | 503 | static void enable_slot(struct acpiphp_slot *slot) |
505 | { | 504 | { |
506 | struct pci_dev *dev; | 505 | struct pci_dev *dev; |
507 | struct pci_bus *bus = slot->bus; | 506 | struct pci_bus *bus = slot->bus; |
@@ -516,8 +515,7 @@ static void __ref enable_slot(struct acpiphp_slot *slot) | |||
516 | if (PCI_SLOT(dev->devfn) != slot->device) | 515 | if (PCI_SLOT(dev->devfn) != slot->device) |
517 | continue; | 516 | continue; |
518 | 517 | ||
519 | if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE || | 518 | if (pci_is_bridge(dev)) { |
520 | dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) { | ||
521 | max = pci_scan_bridge(bus, dev, max, pass); | 519 | max = pci_scan_bridge(bus, dev, max, pass); |
522 | if (pass && dev->subordinate) { | 520 | if (pass && dev->subordinate) { |
523 | check_hotplug_bridge(slot, dev); | 521 | check_hotplug_bridge(slot, dev); |