ACPI / hotplug / PCI: Consolidate acpiphp_enumerate_slots()
commit2552002a46cd6a7a262ea1718db33d1a1517008e
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 13 Jul 2013 21:27:23 +0000 (13 23:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Jul 2013 02:00:19 +0000 (23 04:00 +0200)
tree1f5ba281d3676cee578470a99351c280d47bcee6
parentbe1c9de98d8904c75a5ab8b2a0d97bea0f7c07cc
ACPI / hotplug / PCI: Consolidate acpiphp_enumerate_slots()

The acpiphp_enumerate_slots() function is now split into two parts,
acpiphp_enumerate_slots() proper and init_bridge_misc() which is
only called by the former.  If these functions are combined,
it is possible to make the code easier to follow and to clean up
the error handling (to prevent memory leaks on error from
happening in particular), so do that.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/hotplug/acpiphp_glue.c