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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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 = {


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