diff options
author | Lijo Lazar <lijo.lazar@amd.com> | 2025-02-05 12:24:17 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-02-12 21:04:08 -0500 |
commit | e986e89659e18ba986db044df58f165042817dc3 (patch) | |
tree | 8106847402373c609a3acde81c59a237fa5399d4 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 1846a3472faf39105049d18fdd32bd244f3cbdd3 (diff) | |
download | linux-e986e89659e18ba986db044df58f165042817dc3.tar.gz linux-e986e89659e18ba986db044df58f165042817dc3.tar.bz2 linux-e986e89659e18ba986db044df58f165042817dc3.zip |
drm/amdgpu: Add wrapper for freeing vbios memory
Use bios_release wrapper to release memory allocated for vbios image and
reset the variables.
v2:
Use the same wrapper for clean up in sw_fini (Alex Deucher)
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 4a9580fb0628..947289eb1b2f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -4739,8 +4739,7 @@ void amdgpu_device_fini_sw(struct amdgpu_device *adev) if (amdgpu_emu_mode != 1) amdgpu_atombios_fini(adev); - kfree(adev->bios); - adev->bios = NULL; + amdgpu_bios_release(adev); kfree(adev->fru_info); adev->fru_info = NULL; |