ACPI / PCI: Make bus registration and unregistration symmetric
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 13 Jul 2013 21:27:23 +0000 (23:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Jul 2013 01:58:42 +0000 (03:58 +0200)
commitbe1c9de98d8904c75a5ab8b2a0d97bea0f7c07cc
tree43c1f3632a3b8be20cae5db77bdcd2f0852acdd7
parentb9eb179fe6d9acc11a54194d2df147e991f049aa
ACPI / PCI: Make bus registration and unregistration symmetric

Since acpi_pci_slot_enumerate() and acpiphp_enumerate_slots() can get
the ACPI device handle they need from bus->bridge, it is not
necessary to pass that handle to them as an argument.

Drop the second argument of acpi_pci_slot_enumerate() and
acpiphp_enumerate_slots(), rework them to obtain the ACPI handle
from bus->bridge and make acpi_pci_add_bus() and
acpi_pci_remove_bus() entirely symmetrical.

Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
drivers/acpi/pci_slot.c
drivers/pci/hotplug/acpiphp_glue.c
drivers/pci/pci-acpi.c
include/linux/pci-acpi.h
This page took 0.027561 seconds and 5 git commands to generate.