Browse Source

ACPI: Export functions for hot-remove

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>
Toshi Kani 12 năm trước cách đây
mục cha
commit
61622accd0
2 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 1 0
      drivers/acpi/osl.c
  2. 1 0
      drivers/acpi/scan.c

+ 1 - 0
drivers/acpi/osl.c

@@ -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)
 {

+ 1 - 0
drivers/acpi/scan.c

@@ -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,