projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7047391
)
drm/amdgpu: remove error message when loading driver
author
Xiangliang Yu
<
[email protected]
>
Thu, 24 Nov 2016 08:28:46 +0000
(16:28 +0800)
committer
Alex Deucher
<
[email protected]
>
Tue, 6 Dec 2016 23:08:24 +0000
(18:08 -0500)
Forget to check UCODE_ID_STORAGE case and will cause to print error
message when loading driver, correct it.
Signed-off-by: Xiangliang Yu <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
index 7ded61e6dd81ff22a21d731803b6bec8f7801caf..9ada56c16a589d01e43162f656c0a25c8d926284 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
@@
-723,7
+723,7
@@
static uint16_t amdgpu_get_firmware_version(struct cgs_device *cgs_device,
enum cgs_ucode_id type)
{
CGS_FUNC_ADEV;
- uint16_t fw_version;
+ uint16_t fw_version
= 0
;
switch (type) {
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:
fw_version = adev->gfx.rlc_fw_version;
break;
+ case CGS_UCODE_ID_STORAGE:
+ break;
default:
DRM_ERROR("firmware type %d do not have version\n", type);
-
fw_version = 0
;
+
break
;
}
return fw_version;
}