ACPI / hotplug / PCI: Eliminate acpiphp_dev_to_bridge()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Jul 2014 20:03:14 +0000 (22:03 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Jul 2014 23:45:21 +0000 (01:45 +0200)
commit86f5f3ca49e3d20c1a5e83917b2c8b98a7c95506
tree39cdc562463e0fb96707c5472619bcdade76d568
parent1795cd9b3a91d4b5473c97f491d63892442212ab
ACPI / hotplug / PCI: Eliminate acpiphp_dev_to_bridge()

Since acpiphp_dev_to_bridge() is only called by
acpiphp_check_host_bridge(), move the code from it to that function
directly which reduces the call chain depth and makes the code
slightly easier to follow.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/acpiphp_glue.c