summaryrefslogtreecommitdiff
path: root/drivers/acpi/container.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-03-04 02:08:45 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-03-04 17:25:32 +0400
commit79917f34ac83140c20b06303b608ce6d740f0266 (patch)
tree835bebe6cff472998ff5b04a52d8dac5169641bd /drivers/acpi/container.c
parent3f8055c3583640ed3e4c81864dd76e06a7faa505 (diff)
downloadlinux-79917f34ac83140c20b06303b608ce6d740f0266.tar.xz
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.c4
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");
}