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

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/gmc_v7_0.c