summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hal.c
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2016-05-27 15:22:25 -0400
committerSeshendra Gadagottu <sgadagottu@nvidia.com>2016-06-02 01:28:53 -0400
commit6af864087c3060c73fda346b88c0ee7d4ee19a10 (patch)
treeec7b57267b5c07ce405bf0d727254f1a08af8eeb /drivers/gpu/nvgpu/gk20a/hal.c
parent6fb4193559a371c6131005c71cdc5060c1d9e667 (diff)
gpu: nvgpu: add t19x functionality conditionally
Include t19x functionality only when config TEGRA_T19x_GPU is enabled. Bug 1757988 Change-Id: I049f134d92c4ffdeeed2bc513579f7d9d396ff41 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1155297 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hal.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hal.c b/drivers/gpu/nvgpu/gk20a/hal.c
index 52ec108b..7ab4153b 100644
--- a/drivers/gpu/nvgpu/gk20a/hal.c
+++ b/drivers/gpu/nvgpu/gk20a/hal.c
@@ -22,7 +22,7 @@
22#include "nvgpu_gpuid_t18x.h" 22#include "nvgpu_gpuid_t18x.h"
23#endif 23#endif
24 24
25#ifdef CONFIG_ARCH_TEGRA_19x_SOC 25#ifdef CONFIG_TEGRA_19x_GPU
26#include "nvgpu_gpuid_t19x.h" 26#include "nvgpu_gpuid_t19x.h"
27#endif 27#endif
28 28
@@ -55,7 +55,7 @@ int gpu_init_hal(struct gk20a *g)
55 return -ENODEV; 55 return -ENODEV;
56 break; 56 break;
57#endif 57#endif
58#if defined(CONFIG_ARCH_TEGRA_19x_SOC) 58#ifdef CONFIG_TEGRA_19x_GPU
59 case TEGRA_19x_GPUID: 59 case TEGRA_19x_GPUID:
60 if (TEGRA_19x_GPUID_HAL(g)) 60 if (TEGRA_19x_GPUID_HAL(g))
61 return -ENODEV; 61 return -ENODEV;