1
0
Fork 0

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: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Tested-by: Toshi Kani <toshi.kani@hp.com>
hifive-unleashed-5.1
Rafael J. Wysocki 2013-03-03 23:08:45 +01:00
parent 3f8055c358
commit 79917f34ac
1 changed files with 2 additions and 2 deletions

View 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");
}