mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 10:56:14 +00:00
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>
This commit is contained in:
parent
3f8055c358
commit
79917f34ac
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user