There is need to check the CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS config whether
is enabled before uses the related MST functions.

Signed-off-by: Prike Liang <prike.li...@amd.com>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 ++
 1 file changed, 2 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 94f1651422da..21c0242daf19 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -3382,7 +3382,9 @@ static int dm_resume(struct amdgpu_ip_block *ip_block)
                    aconnector->mst_root)
                        continue;
 
+#if IS_ENABLED(CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS)
                drm_dp_mst_topology_queue_probe(&aconnector->mst_mgr);
+#endif
        }
        drm_connector_list_iter_end(&iter);
 
-- 
2.34.1

Reply via email to