PCI/ACPI: Pass acpi_pci_root to acpi_pci_drivers' add/remove interface
authorTaku Izumi <izumi.taku@jp.fujitsu.com>
Tue, 18 Sep 2012 06:22:35 +0000 (15:22 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 24 Sep 2012 21:29:40 +0000 (15:29 -0600)
commit55bfe3c0c561783655a8ff2f6f3f19ac1362b132
tree270c4b1344f93f417e46f6abd9a9c91a5a3e8c55
parentd0020f65220c237f300355873125df5efe2c2740
PCI/ACPI: Pass acpi_pci_root to acpi_pci_drivers' add/remove interface

This patch changes .add/.remove interfaces of acpi_pci_driver.
In the current implementation acpi_handle is passed as a parameter
of .add/.remove interface.  However, the acpi_pci_root structure
contains more useful information than just the acpi_handle.  This
enables us to avoid some useless lookups in each acpi_pci_driver.

Note: This changes interfaces used by acpi_pci_register_driver(), an
exported symbol.  This patch updates all the in-kernel users, but any
out-of-kernel acpi_pci_register_driver() users will need updates.

[bhelgaas: changelog]
Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/acpi/pci_root.c
drivers/acpi/pci_slot.c
drivers/pci/hotplug/acpiphp_glue.c
include/linux/acpi.h