aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0619-drm-amd-dal-Prepare-bring-up-off-next-ASIC-generatio.patch
blob: f1a31bfdbe75cd3b517a5e1650f6e1ac129c9af2 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
From 3b8139200a5a7b4b86616a546d3cd6dc49177b36 Mon Sep 17 00:00:00 2001
From: Yongqiang Sun <yongqiang.sun@amd.com>
Date: Tue, 8 Dec 2015 14:22:41 -0500
Subject: [PATCH 0619/1110] drm/amd/dal: Prepare bring up off next ASIC
 generation

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland<harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/bios/command_table.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/dal/dc/bios/command_table.c b/drivers/gpu/drm/amd/dal/dc/bios/command_table.c
index c686cc8..87fc14b 100644
--- a/drivers/gpu/drm/amd/dal/dc/bios/command_table.c
+++ b/drivers/gpu/drm/amd/dal/dc/bios/command_table.c
@@ -2772,7 +2772,7 @@ static enum bp_result enable_disp_power_gating_v2_1(
  ********************************************************************************
  *******************************************************************************/
 #ifdef LATEST_ATOM_BIOS_SUPPORT
-enum bp_result set_dce_clock_v2_1(
+static enum bp_result set_dce_clock_v2_1(
 	struct bios_parser *bp,
 	struct bp_set_dce_clock_parameters *bp_params);
 #endif
@@ -2801,11 +2801,10 @@ static enum bp_result set_dce_clock_v2_1(
 	SET_DCE_CLOCK_PS_ALLOCATION_V2_1 params;
 	uint32_t atom_pll_id;
 	uint32_t atom_clock_type;
+	const struct command_table_helper *cmd = bp->cmd_helper;
 
 	dc_service_memset(&params, 0, sizeof(params));
 
-	const struct command_table_helper *cmd = bp->cmd_helper;
-
 	if (!cmd->clock_source_id_to_atom(bp_params->pll_id, &atom_pll_id) ||
 			!cmd->dc_clock_type_to_atom(bp_params->clock_type, &atom_clock_type))
 		return BP_RESULT_BADINPUT;
-- 
2.7.4