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>
This commit is contained in:
parent
7047391fab
commit
188a301fd7
@ -723,7 +723,7 @@ static uint16_t amdgpu_get_firmware_version(struct cgs_device *cgs_device,
|
|||||||
enum cgs_ucode_id type)
|
enum cgs_ucode_id type)
|
||||||
{
|
{
|
||||||
CGS_FUNC_ADEV;
|
CGS_FUNC_ADEV;
|
||||||
uint16_t fw_version;
|
uint16_t fw_version = 0;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case CGS_UCODE_ID_SDMA0:
|
case CGS_UCODE_ID_SDMA0:
|
||||||
@ -753,9 +753,11 @@ static uint16_t amdgpu_get_firmware_version(struct cgs_device *cgs_device,
|
|||||||
case CGS_UCODE_ID_RLC_G:
|
case CGS_UCODE_ID_RLC_G:
|
||||||
fw_version = adev->gfx.rlc_fw_version;
|
fw_version = adev->gfx.rlc_fw_version;
|
||||||
break;
|
break;
|
||||||
|
case CGS_UCODE_ID_STORAGE:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
DRM_ERROR("firmware type %d do not have version\n", type);
|
DRM_ERROR("firmware type %d do not have version\n", type);
|
||||||
fw_version = 0;
|
break;
|
||||||
}
|
}
|
||||||
return fw_version;
|
return fw_version;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user