From 6c5c860e77af773c165818e2e2b806e46c1cad57 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 19 Jun 2017 15:27:21 -0700 Subject: 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 Reviewed-on: http://git-master/r/1505202 Reviewed-by: Alex Waterman Reviewed-by: Konsta Holtta GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gk20a/ce2_gk20a.c | 1 - drivers/gpu/nvgpu/gk20a/ce2_gk20a.h | 1 - 2 files changed, 2 deletions(-) (limited to 'drivers/gpu/nvgpu') 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, } ce_ctx->g = g; - ce_ctx->dev = g->dev; ce_ctx->user_event_callback = user_event_callback; 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 { /* ce context db */ struct gk20a_gpu_ctx { struct gk20a *g; - struct device *dev; u32 ctx_id; struct nvgpu_mutex gpu_ctx_mutex; int gpu_ctx_state; -- cgit v1.2.2