diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 8c81b5b6..e8008937 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -182,15 +182,11 @@ int gk20a_finalize_poweron(struct gk20a *g) | |||
182 | } | 182 | } |
183 | 183 | ||
184 | if (nvgpu_is_enabled(g, NVGPU_SUPPORT_NVLINK)) { | 184 | if (nvgpu_is_enabled(g, NVGPU_SUPPORT_NVLINK)) { |
185 | if (g->ops.nvlink.init) { | 185 | err = g->ops.nvlink.init(g); |
186 | err = g->ops.nvlink.init(g); | 186 | if (err) { |
187 | if (err) { | 187 | nvgpu_err(g, "failed to init nvlink"); |
188 | nvgpu_err(g, "failed to init nvlink"); | 188 | goto done; |
189 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_NVLINK, | 189 | } |
190 | false); | ||
191 | } | ||
192 | } else | ||
193 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_NVLINK, false); | ||
194 | } | 190 | } |
195 | 191 | ||
196 | if (g->ops.fb.mem_unlock) { | 192 | if (g->ops.fb.mem_unlock) { |