Commit 79917f34 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

ACPI / container: Use hotplug profile user space interface

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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarToshi Kani <toshi.kani@hp.com>
Tested-by: default avatarToshi Kani <toshi.kani@hp.com>
parent 3f8055c3
...@@ -49,7 +49,7 @@ static int container_device_attach(struct acpi_device *device, ...@@ -49,7 +49,7 @@ static int container_device_attach(struct acpi_device *device,
return 1; return 1;
} }
static struct acpi_scan_handler container_device_handler = { static struct acpi_scan_handler container_handler = {
.ids = container_device_ids, .ids = container_device_ids,
.attach = container_device_attach, .attach = container_device_attach,
.hotplug = { .hotplug = {
...@@ -60,5 +60,5 @@ static struct acpi_scan_handler container_device_handler = { ...@@ -60,5 +60,5 @@ static struct acpi_scan_handler container_device_handler = {
void __init acpi_container_init(void) void __init acpi_container_init(void)
{ {
acpi_scan_add_handler(&container_device_handler); acpi_scan_add_handler_with_hotplug(&container_handler, "container");
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment