Skip to contentSkip to conversation

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

PATCH New Kevin Wang 1 participant 1 message Sep 7, 2021

Subsystems (3)
lore
Share & tools
lore

Kevin Wang

author
#0 lore raw

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

---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +6 -0
index 8837259215d9..2c12385e0e4f 100644
@@ -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;
 }
 
Signature · 1 line
2.25.1