summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/vgpu.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-10-27 05:06:59 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:54 -0400
commit2d5ff668cbc6a932df2c9cf79627d1d340e5c2c0 (patch)
tree1d9bc4b774a9c2cea339891eaef3af5b87ee354d /drivers/gpu/nvgpu/vgpu/vgpu.c
parent23a182aaa61d120c965f1bce09609cc14d4e14eb (diff)
gpu: nvgpu: GR and LTC HAL to use const structs
Convert GR and LTC HALs to use const structs, and initialize them with macros. Bug 1567274 Change-Id: Ia3f24a5eccb27578d9cba69755f636818d11275c Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/590371
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/vgpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c
index 84fd6d18..11fa73c5 100644
--- a/drivers/gpu/nvgpu/vgpu/vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/vgpu.c
@@ -21,6 +21,7 @@
21#include "gk20a/debug_gk20a.h" 21#include "gk20a/debug_gk20a.h"
22#include "gk20a/hal_gk20a.h" 22#include "gk20a/hal_gk20a.h"
23#include "gk20a/hw_mc_gk20a.h" 23#include "gk20a/hw_mc_gk20a.h"
24#include "nvgpu_gpuid.h"
24 25
25static inline int vgpu_comm_init(struct platform_device *pdev) 26static inline int vgpu_comm_init(struct platform_device *pdev)
26{ 27{
@@ -239,7 +240,7 @@ static int vgpu_init_hal(struct gk20a *g)
239 u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; 240 u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl;
240 241
241 switch (ver) { 242 switch (ver) {
242 case GK20A_GPUID_GK20A: 243 case NVGPU_GPUID_GK20A:
243 gk20a_dbg_info("gk20a detected"); 244 gk20a_dbg_info("gk20a detected");
244 /* init gk20a ops then override with virt extensions */ 245 /* init gk20a ops then override with virt extensions */
245 gk20a_init_hal(&g->ops); 246 gk20a_init_hal(&g->ops);