]> Git Repo - linux.git/commitdiff
drm/amdgpu: make soc15_common_ip_funcs static
authorAlex Deucher <[email protected]>
Fri, 30 Jul 2021 18:46:53 +0000 (14:46 -0400)
committerAlex Deucher <[email protected]>
Thu, 23 Sep 2021 20:35:27 +0000 (16:35 -0400)
It's not used outside of soc15.c

Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/soc15.c
drivers/gpu/drm/amd/amdgpu/soc15.h

index 0fc97c364fd765bf7b1c16f5a368698fd62b406a..15e295a1412c6ea38d456014629cf125aa0e3d4f 100644 (file)
@@ -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,
index 034cfdfc4dbe74b81ab96b225264760a5ab1fb25..a025339ac5e99b2def07495c6259ecee9c8006b9 100644 (file)
@@ -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;
This page took 0.061908 seconds and 4 git commands to generate.