]> rtime.felk.cvut.cz Git - linux-imx.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)
commit00c43b9682507dc622c03172fde1032e2a216e9d
treec863a94c5370d734532c7161f72f8ced4cd4498d
parentca589f9469641916f4f9bd6a820012a27102ef63
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