ACPI / hotplug / PCI: Drop acpiphp_bus_add()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 3 Feb 2014 23:39:58 +0000 (00:39 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 5 Feb 2014 16:40:54 +0000 (17:40 +0100)
commitb6708fbf98ac01d27c8d4d7f7b4fa87583b658cc
treeae8b0feb88ac0bbe648dc9069611ed78d9bd0b44
parentbbcbfc0eed6220591ccc5752edd079099bb1920c
ACPI / hotplug / PCI: Drop acpiphp_bus_add()

acpiphp_bus_add() is only called from one place, so move the code out
of it into that place and drop it.  Also make that code use
func_to_acpi_device() to get the struct acpi_device pointer it needs
instead of calling acpi_bus_get_device() which may be costly.

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