aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2049-drm-amdgpu-delete-duplicated-code.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2049-drm-amdgpu-delete-duplicated-code.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2049-drm-amdgpu-delete-duplicated-code.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2049-drm-amdgpu-delete-duplicated-code.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2049-drm-amdgpu-delete-duplicated-code.patch
new file mode 100644
index 00000000..b71c3eaf
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2049-drm-amdgpu-delete-duplicated-code.patch
@@ -0,0 +1,38 @@
+From 82d9cbb72861c666720befe39d2266163e85301e Mon Sep 17 00:00:00 2001
+From: Rex Zhu <Rex.Zhu@amd.com>
+Date: Fri, 20 Oct 2017 14:52:43 +0800
+Subject: [PATCH 2049/4131] drm/amdgpu: delete duplicated code.
+
+the variable ref_clock was assigned same
+value twice in same function.
+
+Change-Id: I6e99eaacc548991ca07cbe876f171d21a424a799
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+index f2b72c7..85d2149 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+@@ -948,7 +948,6 @@ static int amdgpu_cgs_get_active_displays_info(struct cgs_device *cgs_device,
+ (amdgpu_crtc->v_border * 2);
+ mode_info->vblank_time_us = vblank_lines * line_time_us;
+ mode_info->refresh_rate = drm_mode_vrefresh(&amdgpu_crtc->hw_mode);
+- mode_info->ref_clock = adev->clock.spll.reference_freq;
+ mode_info = NULL;
+ }
+ }
+@@ -958,7 +957,6 @@ static int amdgpu_cgs_get_active_displays_info(struct cgs_device *cgs_device,
+ if (mode_info != NULL) {
+ mode_info->vblank_time_us = adev->pm.pm_display_cfg.min_vblank_time;
+ mode_info->refresh_rate = adev->pm.pm_display_cfg.vrefresh;
+- mode_info->ref_clock = adev->clock.spll.reference_freq;
+ }
+ }
+ return 0;
+--
+2.7.4
+