PCI: add acpi_find_root_bridge_handle
authorJiri Slaby <jirislaby@gmail.com>
Mon, 18 Aug 2008 18:22:54 +0000 (20:22 +0200)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 18 Aug 2008 20:48:04 +0000 (13:48 -0700)
commit056c58e8eb4d6765214757e541b68095e2eb2bd2
treea6d7a8c5df552347aca6588b432b9f0ae3939a59
parente0d94beead4ef652ec1c066be886140eebb06d8b
PCI: add acpi_find_root_bridge_handle

Consolidate finding of a root bridge and getting its handle to the one
inline function. It's cut & pasted on multiple places. Use this new
inline in those.

Cc: kristen.c.accardi@intel.com
Acked-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/acpi_pcihp.c
drivers/pci/pcie/aer/aerdrv_acpi.c
include/linux/pci-acpi.h