diff options
author | 2024-02-12 13:46:45 -0700 | |
---|---|---|
committer | 2024-02-22 10:14:34 -0500 | |
commit | b79f1e8ddbb832cf8d8a0c76e07543ac4371d497 (patch) | |
tree | ee357f37f54515a0b52b3951917834ae28275d56 /drivers/gpu/drm/amd/display/dc/clk_mgr | |
parent | drm/amdgpu: add tmz support for GC IP v11.5.1 (diff) | |
download | linux-b79f1e8ddbb832cf8d8a0c76e07543ac4371d497.tar.gz linux-b79f1e8ddbb832cf8d8a0c76e07543ac4371d497.tar.bz2 linux-b79f1e8ddbb832cf8d8a0c76e07543ac4371d497.zip |
drm/amd/display: Initialize variable with default value
Set a default value for target_div.
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/clk_mgr')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c index 26feefbb8990..b77804cfde0f 100644 --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c @@ -132,7 +132,7 @@ int dce_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base) int dprefclk_wdivider; int dprefclk_src_sel; int dp_ref_clk_khz; - int target_div; + int target_div = 600000; /* ASSERT DP Reference Clock source is from DFS*/ REG_GET(DPREFCLK_CNTL, DPREFCLK_SRC_SEL, &dprefclk_src_sel); |