drm/amd: Use `amdgpu_ucode_*` helpers for GFX6
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 4 Jan 2023 14:34:28 +0000 (08:34 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jan 2023 19:32:57 +0000 (14:32 -0500)
commit39d3649b1647d5af1e6870dc533fdcf615c2a0a3
tree6a7f4e932a582f640313a24faff98f92ac1828bc
parent62a27480b78ad0f7e80c844a3a93974051579983
drm/amd: Use `amdgpu_ucode_*` helpers for GFX6

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_v6_0.c