Instead of skipping the call to hdcp_destroy(), use NULL for the kobject
authorjsg <jsg@openbsd.org>
Thu, 18 Jan 2024 05:01:52 +0000 (05:01 +0000)
committerjsg <jsg@openbsd.org>
Thu, 18 Jan 2024 05:01:52 +0000 (05:01 +0000)
argument.  Unused in the function itself as we define away
sysfs_remove_bin_file().

sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index cee507e..9400cd7 100644 (file)
@@ -1907,7 +1907,7 @@ static void amdgpu_dm_fini(struct amdgpu_device *adev)
 #ifdef notyet
                hdcp_destroy(&adev->dev->kobj, adev->dm.hdcp_workqueue);
 #else
-               STUB();
+               hdcp_destroy(NULL, adev->dm.hdcp_workqueue);
 #endif
                adev->dm.hdcp_workqueue = NULL;
        }