ACPI: Introduce acpi_is_root_bridge()
authorAlexander Chiang <achiang@hp.com>
Wed, 10 Jun 2009 19:55:14 +0000 (19:55 +0000)
committerLen Brown <len.brown@intel.com>
Thu, 18 Jun 2009 03:22:15 +0000 (23:22 -0400)
commit275582031f9b3597a1b973f3ff617adfe639faa2
tree7f4e2c43709758108042e5dcf9b89d756e5bf8e5
parentce597bb42aa84bc73db80509b7c37e7fbc0b75c4
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>
drivers/acpi/pci_root.c
drivers/pci/hotplug/acpi_pcihp.c
drivers/pci/hotplug/acpiphp_glue.c
include/acpi/acpi_bus.h
include/linux/pci_hotplug.h