aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4085-drm-amdgpu-powerplay-fix-a-warning-in-vega10_populat.patch
blob: cbf82aa1aa2402e5f4d335bb7dd37a6d3b913df4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 1d2d5981aa8da2459bdb57685e2d0ef64a4a6789 Mon Sep 17 00:00:00 2001
From: Alex Deucher <alexander.deucher@amd.com>
Date: Wed, 25 Apr 2018 16:55:01 -0500
Subject: [PATCH 4085/4131] drm/amdgpu/powerplay: fix a warning in
 vega10_populate_vddc_soc_levels

Initialize soc_vid to 0.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
index 952c7dd..055c692 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
@@ -1672,7 +1672,7 @@ static void vega10_populate_vddc_soc_levels(struct pp_hwmgr *hwmgr)
 	struct phm_ppt_v2_information *table_info = hwmgr->pptable;
 	struct phm_ppt_v1_voltage_lookup_table *vddc_lookup_table;
 
-	uint8_t soc_vid;
+	uint8_t soc_vid = 0;
 	uint32_t i, max_vddc_level;
 
 	if (hwmgr->od_enabled)
-- 
2.7.4