Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350981
b: refs/heads/master
c: 0aa120a
h: refs/heads/master
i:
  350979: 4e4d7a0
v: v3
  • Loading branch information
Rafael J. Wysocki committed Feb 13, 2013
1 parent 49898eb commit bd88c41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f058cdf4cf3e5181172455f90fc73f2127b6ddf8
refs/heads/master: 0aa120a0138398d6597350f4c1dcb46d14be1a0b
13 changes: 4 additions & 9 deletions trunk/drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,6 @@ void acpi_bus_hot_remove_device(void *context)
/* Device node has been released. */
device = NULL;

/* power off device */
status = acpi_evaluate_object(handle, "_PS3", NULL, NULL);
if (ACPI_FAILURE(status) && status != AE_NOT_FOUND)
printk(KERN_WARNING PREFIX
"Power-off device failed\n");

if (ACPI_SUCCESS(acpi_get_handle(handle, "_LCK", &temp))) {
arg_list.count = 1;
arg_list.pointer = &arg;
Expand Down Expand Up @@ -780,10 +774,11 @@ static void acpi_device_unregister(struct acpi_device *device)

device_del(&device->dev);
/*
* Drop the reference counts of all power resources the device depends
* on and turn off the ones that have no more references.
* Transition the device to D3cold to drop the reference counts of all
* power resources the device depends on and turn off the ones that have
* no more references.
*/
acpi_power_transition(device, ACPI_STATE_D3_COLD);
acpi_device_set_power(device, ACPI_STATE_D3_COLD);
put_device(&device->dev);
}

Expand Down

0 comments on commit bd88c41

Please sign in to comment.