summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/module.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/module.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c
index fb5d3614..4f66fc67 100644
--- a/drivers/gpu/nvgpu/common/linux/module.c
+++ b/drivers/gpu/nvgpu/common/linux/module.c
@@ -156,9 +156,10 @@ static int gk20a_restore_registers(struct gk20a *g)
156 return 0; 156 return 0;
157} 157}
158 158
159static int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l) { 159static int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l)
160{
160 struct gk20a *g = &l->g; 161 struct gk20a *g = &l->g;
161 u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; 162 u32 ver = g->params.gpu_arch + g->params.gpu_impl;
162 163
163 switch (ver) { 164 switch (ver) {
164 case GK20A_GPUID_GM20B: 165 case GK20A_GPUID_GM20B: