Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: remove error message when loading driver

Forget to check UCODE_ID_STORAGE case and will cause to print error
message when loading driver, correct it.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Xiangliang Yu and committed by
Alex Deucher
188a301f 7047391f

+4 -2
+4 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
··· 723 723 enum cgs_ucode_id type) 724 724 { 725 725 CGS_FUNC_ADEV; 726 - uint16_t fw_version; 726 + uint16_t fw_version = 0; 727 727 728 728 switch (type) { 729 729 case CGS_UCODE_ID_SDMA0: ··· 753 753 case CGS_UCODE_ID_RLC_G: 754 754 fw_version = adev->gfx.rlc_fw_version; 755 755 break; 756 + case CGS_UCODE_ID_STORAGE: 757 + break; 756 758 default: 757 759 DRM_ERROR("firmware type %d do not have version\n", type); 758 - fw_version = 0; 760 + break; 759 761 } 760 762 return fw_version; 761 763 }