]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb20c1913dbdb49c17464abada79a656995ec8d50
treeae8b0feb88ac0bbe648dc9069611ed78d9bd0b44
parent257d13462ca31b4449fc77ccfc11e7e441b17582
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