Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350934
b: refs/heads/master
c: 87e753b
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed Jan 22, 2013
1 parent f43afc9 commit 97a9c96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: e78adb7595a9d585c60a7497345cb6eaeaaacefb
refs/heads/master: 87e753b0065f94314ebdacf6593a172cdd7839c8
5 changes: 1 addition & 4 deletions trunk/drivers/acpi/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,12 +622,9 @@ int acpi_power_get_inferred_state(struct acpi_device *device, int *state)

int acpi_power_on_resources(struct acpi_device *device, int state)
{
if (!device || state < ACPI_STATE_D0 || state > ACPI_STATE_D3_COLD)
if (!device || state < ACPI_STATE_D0 || state > ACPI_STATE_D3_HOT)
return -EINVAL;

if (state == ACPI_STATE_D3_COLD)
return 0;

return acpi_power_on_list(&device->power.states[state].resources);
}

Expand Down

0 comments on commit 97a9c96

Please sign in to comment.