]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu/acpi: fix typo in ATCS handling
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 26 May 2021 03:20:03 +0000 (23:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 May 2021 16:33:50 +0000 (12:33 -0400)
Path should be NULL when we already have the handle
to the object.

Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Tested-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c

index dcde3f658a7aad543dda0fb12210eabf0f79ca16..2195e24acb69ae81a767190a71f2ca10782a945c 100644 (file)
@@ -557,7 +557,7 @@ static union acpi_object *amdgpu_atcs_call(struct amdgpu_atcs *atcs,
                atcs_arg_elements[1].integer.value = 0;
        }
 
-       status = acpi_evaluate_object(atcs->handle, "ATCS", &atcs_arg, &buffer);
+       status = acpi_evaluate_object(atcs->handle, NULL, &atcs_arg, &buffer);
 
        /* Fail only if calling the method fails and ATIF is supported */
        if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) {