[PATCH 02/17] drm/amd/display: Initialize variable with default value
Hamza Mahfooz
hamza.mahfooz at amd.com
Wed Feb 14 18:48:01 UTC 2024
On 2/14/24 13:38, Rodrigo Siqueira wrote:
> Set a default value for target_div.
>
> Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira at amd.com>
Reviewed-by: Hamza Mahfooz <hamza.mahfooz at amd.com>
> ---
> drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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);
--
Hamza
More information about the amd-gfx
mailing list