summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-06-10 01:06:32 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-06-10 01:06:32 +0000
commitc0ed6b061cf9864aed39c3e67f1e326ece30a455 (patch)
tree227b212d8483e20f540dba22fe11abdd703e73eb /sys/dev
parent6052bd2b0308613a889dedc170fd761184d62ea4 (diff)
drm/amdgpu/ucode: Remove firmware load type check in amdgpu_ucode_free_bo
From Alice Wong b305469ed00420e53c66064b554531d6fbd98d5b in linux 5.15.y/5.15.46 ab0cd4a9ae5b4679b714d8dbfedc0901fecdce9f in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
index 2578e030d9f..11329616427 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ucode.c
@@ -727,8 +727,7 @@ int amdgpu_ucode_create_bo(struct amdgpu_device *adev)
void amdgpu_ucode_free_bo(struct amdgpu_device *adev)
{
- if (adev->firmware.load_type != AMDGPU_FW_LOAD_DIRECT)
- amdgpu_bo_free_kernel(&adev->firmware.fw_buf,
+ amdgpu_bo_free_kernel(&adev->firmware.fw_buf,
&adev->firmware.fw_buf_mc,
&adev->firmware.fw_buf_ptr);
}