|
@@ -200,6 +200,7 @@ static int acpi_power_get_list_state(struct list_head *list, int *state)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
/* The state of the list is 'on' IFF all resources are 'on'. */
|
|
/* The state of the list is 'on' IFF all resources are 'on'. */
|
|
|
|
+ cur_state = 0;
|
|
list_for_each_entry(entry, list, node) {
|
|
list_for_each_entry(entry, list, node) {
|
|
struct acpi_power_resource *resource = entry->resource;
|
|
struct acpi_power_resource *resource = entry->resource;
|
|
acpi_handle handle = resource->device.handle;
|
|
acpi_handle handle = resource->device.handle;
|