ACPI: Export functions for hot-remove
authorToshi Kani <toshi.kani@hp.com>
Thu, 1 Nov 2012 14:42:12 +0000 (14:42 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:16:04 +0000 (00:16 +0100)
Exported acpi_os_hotplug_execute() and acpi_bus_hot_remove_device()
so that they can be called from modules for hot-remove operations.

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/osl.c
drivers/acpi/scan.c

index 9eaf708f588553ee78b10bb6571e55859fb1db3c..7dfe91d0173ef03129d5aae8d76199e91a916582 100644 (file)
@@ -986,6 +986,7 @@ acpi_status acpi_os_hotplug_execute(acpi_osd_exec_callback function,
 {
        return __acpi_os_execute(0, function, context, 1);
 }
+EXPORT_SYMBOL(acpi_os_hotplug_execute);
 
 void acpi_os_wait_events_complete(void)
 {
index 86bfa690bc6fcc51f8f60f3b9b78470e0d28e7d7..9d43532d69b171e0a063a9b4585e5bf532023319 100644 (file)
@@ -161,6 +161,7 @@ err_out:
        kfree(context);
        return;
 }
+EXPORT_SYMBOL(acpi_bus_hot_remove_device);
 
 static ssize_t
 acpi_eject_store(struct device *d, struct device_attribute *attr,