Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298033
b: refs/heads/master
c: 3723997
h: refs/heads/master
i:
  298031: 597859e
v: v3
  • Loading branch information
Alex He authored and Len Brown committed Mar 30, 2012
1 parent 9c22ea9 commit 9ad6e68
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: 9505626d7bfeb5bd4b85acb483831ac640b2a5e8
refs/heads/master: 37239978778806ecba54da60676abb46870acebb
5 changes: 1 addition & 4 deletions trunk/drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,18 +880,15 @@ static int acpi_bus_get_power_flags(struct acpi_device *device)
int j;

device->power.flags.power_resources = 1;
ps->flags.valid = 1;
for (j = 0; j < ps->resources.count; j++)
acpi_bus_add_power_resource(ps->resources.handles[j]);
}

/* Evaluate "_PSx" to see if we can do explicit sets */
object_name[2] = 'S';
status = acpi_get_handle(device->handle, object_name, &handle);
if (ACPI_SUCCESS(status)) {
if (ACPI_SUCCESS(status))
ps->flags.explicit_set = 1;
ps->flags.valid = 1;
}

/* State is valid if we have some power control */
if (ps->resources.count || ps->flags.explicit_set)
Expand Down

0 comments on commit 9ad6e68

Please sign in to comment.