scsi: zfcp: trace HBA FSF response by default on dismiss or timedout late response
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / acpi / power.c
index f962047c6c85591762893ada0a73549913b03d85..9954200c32d0392501b83013a424476ef902ecfa 100644 (file)
@@ -211,6 +211,7 @@ static int acpi_power_get_list_state(struct list_head *list, int *state)
                return -EINVAL;
 
        /* The state of the list is 'on' IFF all resources are 'on'. */
+       cur_state = 0;
        list_for_each_entry(entry, list, node) {
                struct acpi_power_resource *resource = entry->resource;
                acpi_handle handle = resource->device.handle;
@@ -885,6 +886,7 @@ int acpi_add_power_resource(acpi_handle handle)
                                ACPI_STA_DEFAULT);
        mutex_init(&resource->resource_lock);
        INIT_LIST_HEAD(&resource->dependent);
+       INIT_LIST_HEAD(&resource->list_node);
        resource->name = device->pnp.bus_id;
        strcpy(acpi_device_name(device), ACPI_POWER_DEVICE_NAME);
        strcpy(acpi_device_class(device), ACPI_POWER_CLASS);