]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/userq: use pm_runtime_resume_and_get and fix err handling
authorSunil Khatri <sunil.khatri@amd.com>
Sat, 11 Apr 2026 08:11:06 +0000 (13:41 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 19:41:12 +0000 (15:41 -0400)
commitd3a9fe4584ffb4717e5362d8259794c6220fc465
tree2edaacabdee9f8aa5e8bfde7d227f974e15a1adf
parent1e8b7062d2a8f7cecdbf7ae3fd07efc49a300d0f
drm/amdgpu/userq: use pm_runtime_resume_and_get and fix err handling

Use pm_runtime_resume_and_get instead of pm_runtime_get_sync as it
return error but put the reference in the function itself.

In goto statements we need to drop the pm reference too.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c