Skip to content

Commit

Permalink
drm/amdgpu: make soc15_common_ip_funcs static
Browse files Browse the repository at this point in the history
It's not used outside of soc15.c

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Alex Deucher committed Sep 23, 2021
1 parent 7f19e11 commit 2485e27
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/amd/amdgpu/soc15.c
Original file line number Diff line number Diff line change
@@ -85,6 +85,8 @@
#define mmMP0_MISC_LIGHT_SLEEP_CTRL 0x01ba
#define mmMP0_MISC_LIGHT_SLEEP_CTRL_BASE_IDX 0

static const struct amd_ip_funcs soc15_common_ip_funcs;

/* Vega, Raven, Arcturus */
static const struct amdgpu_video_codec_info vega_video_codecs_encode_array[] =
{
@@ -1645,7 +1647,7 @@ static int soc15_common_set_powergating_state(void *handle,
return 0;
}

const struct amd_ip_funcs soc15_common_ip_funcs = {
static const struct amd_ip_funcs soc15_common_ip_funcs = {
.name = "soc15_common",
.early_init = soc15_common_early_init,
.late_init = soc15_common_late_init,
2 changes: 0 additions & 2 deletions drivers/gpu/drm/amd/amdgpu/soc15.h
Original file line number Diff line number Diff line change
@@ -31,8 +31,6 @@
#define SOC15_FLUSH_GPU_TLB_NUM_WREG 6
#define SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT 3

extern const struct amd_ip_funcs soc15_common_ip_funcs;

struct soc15_reg_golden {
u32 hwip;
u32 instance;

0 comments on commit 2485e27

Please sign in to comment.