diff options
Diffstat (limited to 'drivers/acpi/power.c')
-rw-r--r-- | drivers/acpi/power.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index 089a7c39348f..6db261c237d4 100644 --- a/drivers/acpi/power.c +++ b/drivers/acpi/power.c | |||
@@ -622,12 +622,9 @@ int acpi_power_get_inferred_state(struct acpi_device *device, int *state) | |||
622 | 622 | ||
623 | int acpi_power_on_resources(struct acpi_device *device, int state) | 623 | int acpi_power_on_resources(struct acpi_device *device, int state) |
624 | { | 624 | { |
625 | if (!device || state < ACPI_STATE_D0 || state > ACPI_STATE_D3_COLD) | 625 | if (!device || state < ACPI_STATE_D0 || state > ACPI_STATE_D3_HOT) |
626 | return -EINVAL; | 626 | return -EINVAL; |
627 | 627 | ||
628 | if (state == ACPI_STATE_D3_COLD) | ||
629 | return 0; | ||
630 | |||
631 | return acpi_power_on_list(&device->power.states[state].resources); | 628 | return acpi_power_on_list(&device->power.states[state].resources); |
632 | } | 629 | } |
633 | 630 | ||