summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2014-11-04 08:14:28 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:12:01 -0400
commitb3f575074b66e8af1a9943874f9782b793fa7edc (patch)
treec4aaa1defc512cf5a896edc25445f169de184ece /drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c
parent797e4dd319bd2b9e13ce0e44a3bbbb75e4820330 (diff)
gpu: nvgpu: fix sparse warnings
Fix below sparse warnings : warning: Using plain integer as NULL pointer warning: symbol <variable/funcion> was not declared. Should it be static? warning: Initializer entry defined twice Also, remove dead functions Bug 1573254 Change-Id: I29d71ecc01c841233cf6b26c9088ca8874773469 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/593363 Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c b/drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c
index 0e3b0cb3..c7a34076 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a_gating_reglist.c
@@ -29,7 +29,7 @@ struct gating_desc {
29 u32 disable; 29 u32 disable;
30}; 30};
31/* slcg gr */ 31/* slcg gr */
32const struct gating_desc gk20a_slcg_gr[] = { 32static const struct gating_desc gk20a_slcg_gr[] = {
33 {.addr = 0x004041f4, .prod = 0x00000000, .disable = 0x03fffffe}, 33 {.addr = 0x004041f4, .prod = 0x00000000, .disable = 0x03fffffe},
34 {.addr = 0x00409894, .prod = 0x00000040, .disable = 0x0003fffe}, 34 {.addr = 0x00409894, .prod = 0x00000040, .disable = 0x0003fffe},
35 {.addr = 0x004078c4, .prod = 0x00000000, .disable = 0x000001fe}, 35 {.addr = 0x004078c4, .prod = 0x00000000, .disable = 0x000001fe},
@@ -97,7 +97,7 @@ const struct gating_desc gk20a_slcg_gr[] = {
97}; 97};
98 98
99/* slcg perf */ 99/* slcg perf */
100const struct gating_desc gk20a_slcg_perf[] = { 100static const struct gating_desc gk20a_slcg_perf[] = {
101 {.addr = 0x001be018, .prod = 0x000001ff, .disable = 0x00000000}, 101 {.addr = 0x001be018, .prod = 0x000001ff, .disable = 0x00000000},
102 {.addr = 0x001bc018, .prod = 0x000001ff, .disable = 0x00000000}, 102 {.addr = 0x001bc018, .prod = 0x000001ff, .disable = 0x00000000},
103 {.addr = 0x001b8018, .prod = 0x000001ff, .disable = 0x00000000}, 103 {.addr = 0x001b8018, .prod = 0x000001ff, .disable = 0x00000000},
@@ -105,7 +105,7 @@ const struct gating_desc gk20a_slcg_perf[] = {
105}; 105};
106 106
107/* blcg gr */ 107/* blcg gr */
108const struct gating_desc gk20a_blcg_gr[] = { 108static const struct gating_desc gk20a_blcg_gr[] = {
109 {.addr = 0x004041f0, .prod = 0x00004046, .disable = 0x00000000}, 109 {.addr = 0x004041f0, .prod = 0x00004046, .disable = 0x00000000},
110 {.addr = 0x00409890, .prod = 0x0000007f, .disable = 0x00000000}, 110 {.addr = 0x00409890, .prod = 0x0000007f, .disable = 0x00000000},
111 {.addr = 0x004098b0, .prod = 0x0000007f, .disable = 0x00000000}, 111 {.addr = 0x004098b0, .prod = 0x0000007f, .disable = 0x00000000},
@@ -185,7 +185,7 @@ const struct gating_desc gk20a_blcg_gr[] = {
185}; 185};
186 186
187/* pg gr */ 187/* pg gr */
188const struct gating_desc gk20a_pg_gr[] = { 188static const struct gating_desc gk20a_pg_gr[] = {
189 {.addr = 0x004041f8, .prod = 0x10940000, .disable = 0x00000000}, 189 {.addr = 0x004041f8, .prod = 0x10940000, .disable = 0x00000000},
190 {.addr = 0x004041fc, .prod = 0xff00a725, .disable = 0x00000000}, 190 {.addr = 0x004041fc, .prod = 0xff00a725, .disable = 0x00000000},
191 {.addr = 0x00409898, .prod = 0x10140000, .disable = 0x00000000}, 191 {.addr = 0x00409898, .prod = 0x10140000, .disable = 0x00000000},
@@ -291,7 +291,7 @@ const struct gating_desc gk20a_pg_gr[] = {
291}; 291};
292 292
293/* therm gr */ 293/* therm gr */
294const struct gating_desc gk20a_slcg_therm[] = { 294static const struct gating_desc gk20a_slcg_therm[] = {
295 {.addr = 0x000206b8, .prod = 0x00000000, .disable = 0x0000000f}, 295 {.addr = 0x000206b8, .prod = 0x00000000, .disable = 0x0000000f},
296}; 296};
297 297