diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c index 316df150c1d99193a0d0a71c67ffc24591dda3ee..4f46ff14fb6976f6337290c2762dfe5815035d9e 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c @@ -203,10 +203,10 @@ enum dp_panel_mode dp_get_panel_mode(struct core_link *link) default: break; } + } - if (link->dpcd_caps.panel_mode_edp) { - return DP_PANEL_MODE_EDP; - } + if (link->dpcd_caps.panel_mode_edp) { + return DP_PANEL_MODE_EDP; } return DP_PANEL_MODE_DEFAULT;