]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ACPI / hotplug: Make acpi_bus_hot_remove_device() internal
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Nov 2013 00:41:48 +0000 (01:41 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Nov 2013 00:41:48 +0000 (01:41 +0100)
Notice that handle_root_bridge_removal() is the only user of
acpi_bus_hot_remove_device(), so it doesn't have to be exported
any more and can be made internal to the ACPI core.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
drivers/acpi/internal.h
drivers/acpi/pci_root.c
drivers/acpi/scan.c
include/acpi/acpi_bus.h

index ebc3ad0a188d41798ac9ba187122008b152d0144..6c79ae69d3449789b9d073d2f8fe6059c93e97ae 100644 (file)
@@ -87,6 +87,7 @@ void acpi_device_add_finalize(struct acpi_device *device);
 void acpi_free_pnp_ids(struct acpi_device_pnp *pnp);
 int acpi_bind_one(struct device *dev, acpi_handle handle);
 int acpi_unbind_one(struct device *dev);
+void acpi_bus_hot_remove_device(void *context);
 
 /* --------------------------------------------------------------------------
                                   Power Resource
index 2c03aaee10068bdc8c065948d85d059fcdf67d53..add408b07c934c0c68011f459f6ab7e3a68274b5 100644 (file)
@@ -39,6 +39,8 @@
 #include <acpi/acpi_drivers.h>
 #include <acpi/apei.h>
 
+#include "internal.h"
+
 #define PREFIX "ACPI: "
 
 #define _COMPONENT             ACPI_PCI_COMPONENT
index cc19d623a18f3a8141bf314da74401196b22d415..1217ba33f8bff99f8bbbf88b426087a6090fe75c 100644 (file)
@@ -467,7 +467,6 @@ void acpi_bus_hot_remove_device(void *context)
 {
        __acpi_bus_hot_remove_device(context, ACPI_NOTIFY_EJECT_REQUEST);
 }
-EXPORT_SYMBOL(acpi_bus_hot_remove_device);
 
 static ssize_t real_power_state_show(struct device *dev,
                                     struct device_attribute *attr, char *buf)
index 06b644ca052c0bfed9a75b7b9708cf4d6629a106..eb37a6fb8665b217a4acc4682bc7746360fa5d9b 100644 (file)
@@ -386,7 +386,6 @@ int acpi_scan_add_handler(struct acpi_scan_handler *handler);
 int acpi_bus_register_driver(struct acpi_driver *driver);
 void acpi_bus_unregister_driver(struct acpi_driver *driver);
 int acpi_bus_scan(acpi_handle handle);
-void acpi_bus_hot_remove_device(void *context);
 void acpi_bus_trim(struct acpi_device *start);
 acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd);
 int acpi_match_device_ids(struct acpi_device *device,