Skip to content

Commit

Permalink
ACPI / container: Use hotplug profile user space interface
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki committed Mar 4, 2013
1 parent 3f8055c commit 79917f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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");
}

0 comments on commit 79917f3

Please sign in to comment.