diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-06 19:41:48 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-06 19:41:48 -0500 |
commit | ace8238b00eafd493b8dbcc7db813ed72b8b6e87 (patch) | |
tree | 06f6856e7ce4f272eaa686fca5ce3bd33d5df56b /drivers/acpi | |
parent | 5add99cfef416487d32b4b7075fe1a409f3a5e82 (diff) |
ACPI / hotplug: Make acpi_bus_hot_remove_device() internal
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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/internal.h | 1 | ||||
-rw-r--r-- | drivers/acpi/pci_root.c | 2 | ||||
-rw-r--r-- | drivers/acpi/scan.c | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index ebc3ad0a188d..6c79ae69d344 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h | |||
@@ -87,6 +87,7 @@ void acpi_device_add_finalize(struct acpi_device *device); | |||
87 | void acpi_free_pnp_ids(struct acpi_device_pnp *pnp); | 87 | void acpi_free_pnp_ids(struct acpi_device_pnp *pnp); |
88 | int acpi_bind_one(struct device *dev, acpi_handle handle); | 88 | int acpi_bind_one(struct device *dev, acpi_handle handle); |
89 | int acpi_unbind_one(struct device *dev); | 89 | int acpi_unbind_one(struct device *dev); |
90 | void acpi_bus_hot_remove_device(void *context); | ||
90 | 91 | ||
91 | /* -------------------------------------------------------------------------- | 92 | /* -------------------------------------------------------------------------- |
92 | Power Resource | 93 | Power Resource |
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index 2c03aaee1006..add408b07c93 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c | |||
@@ -39,6 +39,8 @@ | |||
39 | #include <acpi/acpi_drivers.h> | 39 | #include <acpi/acpi_drivers.h> |
40 | #include <acpi/apei.h> | 40 | #include <acpi/apei.h> |
41 | 41 | ||
42 | #include "internal.h" | ||
43 | |||
42 | #define PREFIX "ACPI: " | 44 | #define PREFIX "ACPI: " |
43 | 45 | ||
44 | #define _COMPONENT ACPI_PCI_COMPONENT | 46 | #define _COMPONENT ACPI_PCI_COMPONENT |
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index cc19d623a18f..1217ba33f8bf 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -467,7 +467,6 @@ void acpi_bus_hot_remove_device(void *context) | |||
467 | { | 467 | { |
468 | __acpi_bus_hot_remove_device(context, ACPI_NOTIFY_EJECT_REQUEST); | 468 | __acpi_bus_hot_remove_device(context, ACPI_NOTIFY_EJECT_REQUEST); |
469 | } | 469 | } |
470 | EXPORT_SYMBOL(acpi_bus_hot_remove_device); | ||
471 | 470 | ||
472 | static ssize_t real_power_state_show(struct device *dev, | 471 | static ssize_t real_power_state_show(struct device *dev, |
473 | struct device_attribute *attr, char *buf) | 472 | struct device_attribute *attr, char *buf) |