diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-10-27 05:06:59 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:54 -0400 |
commit | 2d5ff668cbc6a932df2c9cf79627d1d340e5c2c0 (patch) | |
tree | 1d9bc4b774a9c2cea339891eaef3af5b87ee354d /drivers/gpu/nvgpu/gk20a/hal.c | |
parent | 23a182aaa61d120c965f1bce09609cc14d4e14eb (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/gk20a/hal.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hal.c b/drivers/gpu/nvgpu/gk20a/hal.c index 8d1a29dd..84b8d819 100644 --- a/drivers/gpu/nvgpu/gk20a/hal.c +++ b/drivers/gpu/nvgpu/gk20a/hal.c | |||
@@ -20,13 +20,13 @@ | |||
20 | int gpu_init_hal(struct gk20a *g) | 20 | int gpu_init_hal(struct gk20a *g) |
21 | { | 21 | { |
22 | u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; | 22 | u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; |
23 | gk20a_dbg_fn("ver=0x%x", ver); | ||
23 | switch (ver) { | 24 | switch (ver) { |
24 | case GK20A_GPUID_GK20A: | 25 | case NVGPU_GPUID_GK20A: |
25 | gk20a_dbg_info("gk20a detected"); | 26 | if (gk20a_init_hal(&g->ops)) |
26 | gk20a_init_hal(&g->ops); | 27 | return -ENODEV; |
27 | break; | 28 | break; |
28 | case GK20A_GPUID_GM20B: | 29 | case NVGPU_GPUID_GM20B: |
29 | gk20a_dbg_info("gm20b detected"); | ||
30 | if (gm20b_init_hal(&g->ops)) | 30 | if (gm20b_init_hal(&g->ops)) |
31 | return -ENODEV; | 31 | return -ENODEV; |
32 | break; | 32 | break; |