Skip to content

Commit

Permalink
ACPI: Export functions for hot-remove
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Toshi Kani authored and Rafael J. Wysocki committed Nov 14, 2012
1 parent 923d4a4 commit 61622ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/acpi/osl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 1 addition & 0 deletions drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ void acpi_bus_hot_remove_device(void *context)
kfree(context);
return;
}
EXPORT_SYMBOL(acpi_bus_hot_remove_device);

static ssize_t
acpi_eject_store(struct device *d, struct device_attribute *attr,
Expand Down

0 comments on commit 61622ac

Please sign in to comment.