drm/amd: Use `amdgpu_ucode_*` helpers for GFX7
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 4 Jan 2023 14:35:09 +0000 (08:35 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jan 2023 19:32:57 +0000 (14:32 -0500)
commit469f199e472e5df76be75ee76fdc174ca856ee76
tree56b4793bcdb46dfc1a51734d50595f7820f3b7c3
parent39d3649b1647d5af1e6870dc533fdcf615c2a0a3
drm/amd: Use `amdgpu_ucode_*` helpers for GFX7

The `amdgpu_ucode_request` helper will ensure that the return code for
missing firmware is -ENODEV so that early_init can fail.

The `amdgpu_ucode_release` helper is for symmetry on unloading.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c