summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
index 3c6d8924..32c95e2f 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
@@ -442,9 +442,7 @@ done:
442 442
443int gr_gk20a_init_ctx_vars(struct gk20a *g, struct gr_gk20a *gr) 443int gr_gk20a_init_ctx_vars(struct gk20a *g, struct gr_gk20a *gr)
444{ 444{
445 struct gk20a_platform *platform = dev_get_drvdata(g->dev); 445 if (g->is_fmodel)
446
447 if (platform->is_fmodel)
448 return gr_gk20a_init_ctx_vars_sim(g, gr); 446 return gr_gk20a_init_ctx_vars_sim(g, gr);
449 else 447 else
450 return gr_gk20a_init_ctx_vars_fw(g, gr); 448 return gr_gk20a_init_ctx_vars_fw(g, gr);