summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-06-21 18:56:05 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-30 21:34:59 -0400
commitbab823973b0630e2f4515d5aabbe4fb46cdf3195 (patch)
tree9e19ed71ed9a57b15a3f3b48ffbbbc1b196bf4d6 /drivers/gpu/nvgpu/gk20a/gr_gk20a.c
parent6f0fcbc667ca55ed25818467069853e6d750cd7d (diff)
gpu: nvgpu: Use accessor for finding struct device
Use dev_from_gk20a() accessor whenever accessing struct device * from struct gk20a. JIRA NVGPU-38 Change-Id: Ide9fca3a56436c8f62e7872580a766c4c1e2353e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master/r/1507930 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 3ac4e397..570aad18 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -39,6 +39,7 @@
39#include "regops_gk20a.h" 39#include "regops_gk20a.h"
40#include "dbg_gpu_gk20a.h" 40#include "dbg_gpu_gk20a.h"
41#include "ctxsw_trace_gk20a.h" 41#include "ctxsw_trace_gk20a.h"
42#include "platform_gk20a.h"
42 43
43#include <nvgpu/hw/gk20a/hw_ccsr_gk20a.h> 44#include <nvgpu/hw/gk20a/hw_ccsr_gk20a.h>
44#include <nvgpu/hw/gk20a/hw_ctxsw_prog_gk20a.h> 45#include <nvgpu/hw/gk20a/hw_ctxsw_prog_gk20a.h>
@@ -4826,7 +4827,7 @@ static int gk20a_init_gr_setup_sw(struct gk20a *g)
4826 gr->sw_ready = true; 4827 gr->sw_ready = true;
4827 4828
4828 if (g->ops.gr.create_gr_sysfs) 4829 if (g->ops.gr.create_gr_sysfs)
4829 g->ops.gr.create_gr_sysfs(g->dev); 4830 g->ops.gr.create_gr_sysfs(dev_from_gk20a(g));
4830 4831
4831 gk20a_dbg_fn("done"); 4832 gk20a_dbg_fn("done");
4832 return 0; 4833 return 0;