ACPI / container: Use hotplug profile user space interface
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 3 Mar 2013 22:08:45 +0000 (23:08 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 4 Mar 2013 13:25:32 +0000 (14:25 +0100)
Make the ACPI container driver register its ACPI scan handler object
using acpi_scan_add_handler_with_hotplug() to allow user space to
manipulate its hotplug profile attributes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Tested-by: Toshi Kani <toshi.kani@hp.com>
drivers/acpi/container.c

index 7f08dd6..f9f8a08 100644 (file)
@@ -49,7 +49,7 @@ static int container_device_attach(struct acpi_device *device,
        return 1;
 }
 
-static struct acpi_scan_handler container_device_handler = {
+static struct acpi_scan_handler container_handler = {
        .ids = container_device_ids,
        .attach = container_device_attach,
        .hotplug = {
@@ -60,5 +60,5 @@ static struct acpi_scan_handler container_device_handler = {
 
 void __init acpi_container_init(void)
 {
-       acpi_scan_add_handler(&container_device_handler);
+       acpi_scan_add_handler_with_hotplug(&container_handler, "container");
 }