diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-08 17:52:39 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-13 07:43:01 -0500 |
commit | 737f1a9f808280c481681b1f46254fd67023ec2f (patch) | |
tree | a805f30902127567f74772276a06a2242346f31f /drivers/acpi/scan.c | |
parent | 38475b3be1517a16d263b0b04dae862bf7027d48 (diff) |
ACPI / scan: Make container driver use struct acpi_scan_handler
Make the ACPI container driver use struct acpi_scan_handler for
representing the object used to initialize ACPI containers and remove
the ACPI driver structure used previously and the data structures
created by it, since in fact they were not used for any purpose.
This simplifies the code 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.
In addition to that, make the namespace walk callback used for
installing the notify handlers for ACPI containers more
straightforward.
This change includes fixes from Toshi Kani.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Tested-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Reviewed-by: Toshi Kani <toshi.kani@hp.com>
Tested-by: Toshi Kani <toshi.kani@hp.com>
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r-- | drivers/acpi/scan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 5bc2641fba8a..a48b6e92f9f8 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -1758,6 +1758,7 @@ int __init acpi_scan_init(void) | |||
1758 | acpi_pci_link_init(); | 1758 | acpi_pci_link_init(); |
1759 | acpi_platform_init(); | 1759 | acpi_platform_init(); |
1760 | acpi_csrt_init(); | 1760 | acpi_csrt_init(); |
1761 | acpi_container_init(); | ||
1761 | 1762 | ||
1762 | /* | 1763 | /* |
1763 | * Enumerate devices in the ACPI namespace. | 1764 | * Enumerate devices in the ACPI namespace. |