]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / PCI: Make PCI root driver use struct acpi_scan_handler
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Jan 2013 13:27:33 +0000 (14:27 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Jan 2013 13:27:33 +0000 (14:27 +0100)
commit70eeda5cac31750a6463a62dcd3ac5b6a81e3f68
treec863a94c5370d734532c7161f72f8ced4cd4498d
parent67772025fe6ddc423484cd07f4ccfef97096fcab
ACPI / PCI: Make PCI root driver use struct acpi_scan_handler

Make the ACPI PCI root bridge driver use struct acpi_scan_handler
for representing the object used to enumerate the PCI busses under
PCI host bridges found in the ACPI namespace (and to tear down data
structures representing the bus and devices on it before
unregistering the host bridges' ACPI device nodes).

This simplifies the code slightly and reduces the kernel's memory
footprint by avoiding the registration of a struct device_driver
object with the driver core and creation of its sysfs directory
which is unnecessary.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Toshi Kani <toshi.kani@hp.com>
drivers/acpi/internal.h
drivers/acpi/pci_root.c