diff options
Diffstat (limited to 'drivers/acpi/power.c')
-rw-r--r-- | drivers/acpi/power.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index 547eee7537bc..4ffecd179702 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c | |||
@@ -688,13 +688,6 @@ static int acpi_power_resume(struct acpi_device *device) | |||
688 | return result; | 688 | return result; |
689 | 689 | ||
690 | mutex_lock(&resource->resource_lock); | 690 | mutex_lock(&resource->resource_lock); |
691 | if ((resource->state == ACPI_POWER_RESOURCE_STATE_ON) && | ||
692 | list_empty(&resource->reference)) { | ||
693 | mutex_unlock(&resource->resource_lock); | ||
694 | result = acpi_power_off_device(device->handle, NULL); | ||
695 | return result; | ||
696 | } | ||
697 | |||
698 | if ((resource->state == ACPI_POWER_RESOURCE_STATE_OFF) && | 691 | if ((resource->state == ACPI_POWER_RESOURCE_STATE_OFF) && |
699 | !list_empty(&resource->reference)) { | 692 | !list_empty(&resource->reference)) { |
700 | ref = container_of(resource->reference.next, struct acpi_power_reference, node); | 693 | ref = container_of(resource->reference.next, struct acpi_power_reference, node); |