]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Add wrapper for freeing vbios memory
authorLijo Lazar <lijo.lazar@amd.com>
Wed, 5 Feb 2025 06:54:17 +0000 (12:24 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:04:08 +0000 (21:04 -0500)
commite986e89659e18ba986db044df58f165042817dc3
tree8106847402373c609a3acde81c59a237fa5399d4
parent1846a3472faf39105049d18fdd32bd244f3cbdd3
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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c