Skip to content

Commit 71fe449

Browse files
Yang Wangalexdeucher
authored andcommitted
drm/amdgpu: refine isp firmware loading
refine isp firmware loading Signed-off-by: Yang Wang <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 75be61a commit 71fe449

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,14 @@ static int isp_load_fw_by_psp(struct amdgpu_device *adev)
9797
{
9898
const struct common_firmware_header *hdr;
9999
char ucode_prefix[10];
100-
char fw_name[40];
101100
int r = 0;
102101

103102
/* get isp fw binary name and path */
104103
amdgpu_ucode_ip_version_decode(adev, ISP_HWIP, ucode_prefix,
105104
sizeof(ucode_prefix));
106-
snprintf(fw_name, sizeof(fw_name), "amdgpu/%s.bin", ucode_prefix);
107105

108106
/* read isp fw */
109-
r = amdgpu_ucode_request(adev, &adev->isp.fw, fw_name);
107+
r = amdgpu_ucode_request(adev, &adev->isp.fw, "amdgpu/%s.bin", ucode_prefix);
110108
if (r) {
111109
amdgpu_ucode_release(&adev->isp.fw);
112110
return r;

0 commit comments

Comments
 (0)