Merge branch 'acpi-pm'
[platform/kernel/linux-starfive.git] / drivers / acpi / power.c
index bacae6d..56102ea 100644 (file)
@@ -925,8 +925,7 @@ int acpi_add_power_resource(acpi_handle handle)
                return -ENOMEM;
 
        device = &resource->device;
-       acpi_init_device_object(device, handle, ACPI_BUS_TYPE_POWER,
-                               ACPI_STA_DEFAULT, NULL);
+       acpi_init_device_object(device, handle, ACPI_BUS_TYPE_POWER);
        mutex_init(&resource->resource_lock);
        INIT_LIST_HEAD(&resource->list_node);
        INIT_LIST_HEAD(&resource->dependents);
@@ -935,7 +934,7 @@ int acpi_add_power_resource(acpi_handle handle)
        strcpy(acpi_device_class(device), ACPI_POWER_CLASS);
        device->power.state = ACPI_STATE_UNKNOWN;
 
-       /* Evalute the object to get the system level and resource order. */
+       /* Evaluate the object to get the system level and resource order. */
        status = acpi_evaluate_object(handle, NULL, NULL, &buffer);
        if (ACPI_FAILURE(status))
                goto err;