PCI Hotplug: acpiphp: find bridges the easy way
authorAlex Chiang <achiang@hp.com>
Thu, 10 Sep 2009 18:34:04 +0000 (12:34 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 14 Sep 2009 15:46:48 +0000 (08:46 -0700)
commit6edd7679db92376ca54f328d6b0f12291c2dab35
treeb04ce7c5965e30914f3ba6e70f6553363552d23f
parent9965976a38f66fc170fc0528b3115bf1a8a58b0a
PCI Hotplug: acpiphp: find bridges the easy way

Instead of constantly evaluating _ADR and _SEG over and over again,
let's simplify our lives by using:

acpi_pci_find_root() for root bridges
acpi_get_pci_dev() for p2p bridges

This change eliminates some copy 'n paste code and also allows us
to simplify some internal interfaces.

Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Tested-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/acpiphp_glue.c