diff options
author | Alexander Chiang <achiang@hp.com> | 2009-06-10 15:55:14 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-06-17 23:22:15 -0400 |
commit | 275582031f9b3597a1b973f3ff617adfe639faa2 (patch) | |
tree | 7f4e2c43709758108042e5dcf9b89d756e5bf8e5 /drivers/pci/hotplug/acpiphp_glue.c | |
parent | ce597bb42aa84bc73db80509b7c37e7fbc0b75c4 (diff) |
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) | |||
1631 | { | 1631 | { |
1632 | int *count = (int *)context; | 1632 | int *count = (int *)context; |
1633 | 1633 | ||
1634 | if (acpi_root_bridge(handle)) { | 1634 | if (acpi_is_root_bridge(handle)) { |
1635 | acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY, | 1635 | acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY, |
1636 | handle_hotplug_event_bridge, NULL); | 1636 | handle_hotplug_event_bridge, NULL); |
1637 | (*count)++; | 1637 | (*count)++; |