summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/acpiphp.h
diff options
context:
space:
mode:
authorYinghai Lu2013-01-21 22:20:50 +0100
committerBjorn Helgaas2013-01-25 22:53:48 +0100
commitd59f53bc9bd80ee62072dea590fc623c67cb84a8 (patch)
treea3a0cc477ebee058882365048690fba057dea014 /drivers/pci/hotplug/acpiphp.h
parentPCI/ACPI: Print info if host bridge notify handler installation fails (diff)
downloadkernel-qcow2-linux-d59f53bc9bd80ee62072dea590fc623c67cb84a8.tar.gz
kernel-qcow2-linux-d59f53bc9bd80ee62072dea590fc623c67cb84a8.tar.xz
kernel-qcow2-linux-d59f53bc9bd80ee62072dea590fc623c67cb84a8.zip
PCI: acpiphp: Keep driver loaded even if no slots found
Could have root bus hot-added later and there may be slots that need acpiphp. The result returned by acpiphp_get_num_slots() is meaningless, because the bridge the slots are under may be added after this function has been called, so drop acpiphp_get_num_slots() and the code using it. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pci/hotplug/acpiphp.h')
-rw-r--r--drivers/pci/hotplug/acpiphp.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/acpiphp.h b/drivers/pci/hotplug/acpiphp.h
index a1afb5b39ad4..b3ead7ad7b31 100644
--- a/drivers/pci/hotplug/acpiphp.h
+++ b/drivers/pci/hotplug/acpiphp.h
@@ -193,7 +193,6 @@ extern void acpiphp_unregister_hotplug_slot(struct acpiphp_slot *slot);
/* acpiphp_glue.c */
extern int acpiphp_glue_init (void);
extern void acpiphp_glue_exit (void);
-extern int acpiphp_get_num_slots (void);
typedef int (*acpiphp_callback)(struct acpiphp_slot *slot, void *data);
extern int acpiphp_enable_slot (struct acpiphp_slot *slot);