diff options
author | Alexander Chiang <achiang@hp.com> | 2009-06-10 21:55:14 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-06-18 05:22:15 +0200 |
commit | 275582031f9b3597a1b973f3ff617adfe639faa2 (patch) | |
tree | 7f4e2c43709758108042e5dcf9b89d756e5bf8e5 /drivers/pci/hotplug/acpiphp_glue.c | |
parent | ACPI: make acpi_pci_bind() static (diff) | |
download | linux-275582031f9b3597a1b973f3ff617adfe639faa2.tar.xz linux-275582031f9b3597a1b973f3ff617adfe639faa2.zip |
ACPI: Introduce acpi_is_root_bridge()
Returns whether an ACPI CA node is a PCI root bridge or not.
This API is generically useful, and shouldn't just be a hotplug function.
The implementation becomes much simpler as well.
Signed-off-by: Alex Chiang <achiang@hp.com>
Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pci/hotplug/acpiphp_glue.c')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index 3a6064bce561..fc6636e3300b 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c @@ -1631,7 +1631,7 @@ find_root_bridges(acpi_handle handle, u32 lvl, void *context, void **rv) { int *count = (int *)context; - if (acpi_root_bridge(handle)) { + if (acpi_is_root_bridge(handle)) { acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY, handle_hotplug_event_bridge, NULL); (*count)++; |