Fixes an unhandled cases warning and defaults to a more logical return value. Fixes: 808a662bb3a8 ("drm/amd/display: Add DP 2.0 SST DC Support") Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> --- drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 97de1c5ab3a6..29b9c128c87c 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 @@ -730,10 +730,9 @@ static enum phyd32clk_clock_source get_phyd32clk_src(struct dc_link *link) return PHYD32CLKD; case TRANSMITTER_UNIPHY_E: return PHYD32CLKE; + default: + return PHYD32CLKA; } - - //BREAK_TO_DEBUGGER(); - return TRANSMITTER_UNIPHY_A; } void enable_dp_hpo_output(struct dc_link *link, const struct dc_link_settings *link_settings) -- 2.31.1