aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/scan.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 75fb14fc19e8..c7676ee8eca4 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -125,12 +125,6 @@ void acpi_bus_hot_remove_device(void *context)
125 /* Device node has been released. */ 125 /* Device node has been released. */
126 device = NULL; 126 device = NULL;
127 127
128 /* power off device */
129 status = acpi_evaluate_object(handle, "_PS3", NULL, NULL);
130 if (ACPI_FAILURE(status) && status != AE_NOT_FOUND)
131 printk(KERN_WARNING PREFIX
132 "Power-off device failed\n");
133
134 if (ACPI_SUCCESS(acpi_get_handle(handle, "_LCK", &temp))) { 128 if (ACPI_SUCCESS(acpi_get_handle(handle, "_LCK", &temp))) {
135 arg_list.count = 1; 129 arg_list.count = 1;
136 arg_list.pointer = &arg; 130 arg_list.pointer = &arg;
@@ -780,10 +774,11 @@ static void acpi_device_unregister(struct acpi_device *device)
780 774
781 device_del(&device->dev); 775 device_del(&device->dev);
782 /* 776 /*
783 * Drop the reference counts of all power resources the device depends 777 * Transition the device to D3cold to drop the reference counts of all
784 * on and turn off the ones that have no more references. 778 * power resources the device depends on and turn off the ones that have
779 * no more references.
785 */ 780 */
786 acpi_power_transition(device, ACPI_STATE_D3_COLD); 781 acpi_device_set_power(device, ACPI_STATE_D3_COLD);
787 put_device(&device->dev); 782 put_device(&device->dev);
788} 783}
789 784