diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-03-03 23:08:45 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-03-04 14:25:32 +0100 |
commit | 79917f34ac83140c20b06303b608ce6d740f0266 (patch) | |
tree | 835bebe6cff472998ff5b04a52d8dac5169641bd /drivers/acpi/container.c | |
parent | 3f8055c3583640ed3e4c81864dd76e06a7faa505 (diff) | |
download | talos-obmc-linux-79917f34ac83140c20b06303b608ce6d740f0266.tar.gz talos-obmc-linux-79917f34ac83140c20b06303b608ce6d740f0266.zip |
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>
Diffstat (limited to 'drivers/acpi/container.c')
-rw-r--r-- | drivers/acpi/container.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/container.c b/drivers/acpi/container.c index 7f08dd68c524..f9f8a08827fa 100644 --- a/drivers/acpi/container.c +++ b/drivers/acpi/container.c @@ -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"); } |