projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95a3ff7
)
drm/amdgpu: delete duplicated code.
author
Rex Zhu
<
[email protected]
>
Fri, 20 Oct 2017 06:52:43 +0000
(14:52 +0800)
committer
Alex Deucher
<
[email protected]
>
Mon, 4 Dec 2017 21:33:19 +0000
(16:33 -0500)
the variable ref_clock was assigned same
value twice in same function.
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Rex Zhu <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
index f2b72c7c6857e66a5a4b14d216973c5c1ea8aa1a..85d2149b9dbeef43bb6e9ae3e54ae0c3240d74ec 100644
(file)
--- 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;