summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-06-19 18:27:21 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-20 14:35:34 -0400
commit6c5c860e77af773c165818e2e2b806e46c1cad57 (patch)
treec31c9894fb1c324b6986c4443049d0a7254d3aa9 /drivers/gpu/nvgpu
parent0b6eff29656a4ee3d3d0bf94fd6a6328ded4ac7a (diff)
gpu: nvgpu: Remove device pointer from gk20a_gpu_ctx
Remove pointer to struct device from gk20a_gpu_ctx. The pointer is not used anywhere, and it adds an unnecessary Linux dependency. JIRA NVGPU-38 Change-Id: Id5843a21e4809ca840e4f5d561728f859bbd964e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1505202 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ce2_gk20a.c1
-rw-r--r--drivers/gpu/nvgpu/gk20a/ce2_gk20a.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
index 8e600c18..b0f65647 100644
--- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c
@@ -441,7 +441,6 @@ u32 gk20a_ce_create_context_with_cb(struct gk20a *g,
441 } 441 }
442 442
443 ce_ctx->g = g; 443 ce_ctx->g = g;
444 ce_ctx->dev = g->dev;
445 ce_ctx->user_event_callback = user_event_callback; 444 ce_ctx->user_event_callback = user_event_callback;
446 445
447 ce_ctx->cmd_buf_read_queue_offset = 0; 446 ce_ctx->cmd_buf_read_queue_offset = 0;
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h
index f972e175..93905ab9 100644
--- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.h
@@ -99,7 +99,6 @@ struct gk20a_ce_app {
99/* ce context db */ 99/* ce context db */
100struct gk20a_gpu_ctx { 100struct gk20a_gpu_ctx {
101 struct gk20a *g; 101 struct gk20a *g;
102 struct device *dev;
103 u32 ctx_id; 102 u32 ctx_id;
104 struct nvgpu_mutex gpu_ctx_mutex; 103 struct nvgpu_mutex gpu_ctx_mutex;
105 int gpu_ctx_state; 104 int gpu_ctx_state;