drm/amd: Use `amdgpu_ucode_*` helpers for VCN
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 3 Jan 2023 20:09:03 +0000 (14:09 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Jan 2023 22:02:17 +0000 (17:02 -0500)
commit33efaf829d7bfd4c12c3869f114e03a0043e7f38
treeb3b72dc9df212879da43926e1458922973e47398
parent6675402a47cc9464d57ace33fb10c59f126334b8
drm/amd: Use `amdgpu_ucode_*` helpers for VCN

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.

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