[PATCH] drm/amd/display: fix missing cleanup for remove s3_debug in dm_early_fini()

Kevin Wang kevin1.wang at amd.com
Tue Sep 7 07:04:00 UTC 2021


Signed-off-by: Kevin Wang <kevin1.wang at amd.com>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 8837259215d9..2c12385e0e4f 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1436,6 +1436,12 @@ static int amdgpu_dm_early_fini(void *handle)
 
 	amdgpu_dm_audio_fini(adev);
 
+#if defined(CONFIG_DEBUG_KERNEL_DC)
+	device_create_file(
+		adev_to_drm(adev)->dev,
+		&dev_attr_s3_debug);
+#endif
+
 	return 0;
 }
 
-- 
2.25.1



More information about the amd-gfx mailing list