summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/module.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-11-09 18:12:41 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-17 19:29:41 -0500
commit9d04e970937657d11620d812c29a5d10828440fc (patch)
tree78d06a0773317241ddfdc9d2b1bc6c871f3175c7 /drivers/gpu/nvgpu/common/linux/module.c
parent35ae4194a05d47aa6d79353428f81f2ca47ce90f (diff)
gpu: nvgpu: Remove separation of t18x code
Remove separation of t18x specific code and fields and the associated ifdefs. We can build T18x code in always. Change-Id: I4e8eae9c30335632a2da48b418c6138193831b4f Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1595431 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/module.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/module.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c
index 76b9d4db..796507a9 100644
--- a/drivers/gpu/nvgpu/common/linux/module.c
+++ b/drivers/gpu/nvgpu/common/linux/module.c
@@ -339,10 +339,8 @@ static struct of_device_id tegra_gk20a_of_match[] = {
339#ifdef CONFIG_TEGRA_GK20A 339#ifdef CONFIG_TEGRA_GK20A
340 { .compatible = "nvidia,tegra210-gm20b", 340 { .compatible = "nvidia,tegra210-gm20b",
341 .data = &gm20b_tegra_platform }, 341 .data = &gm20b_tegra_platform },
342#ifdef CONFIG_ARCH_TEGRA_18x_SOC
343 { .compatible = "nvidia,tegra186-gp10b", 342 { .compatible = "nvidia,tegra186-gp10b",
344 .data = &gp10b_tegra_platform }, 343 .data = &gp10b_tegra_platform },
345#endif
346#ifdef CONFIG_TEGRA_19x_GPU 344#ifdef CONFIG_TEGRA_19x_GPU
347 { .compatible = TEGRA_19x_GPU_COMPAT_TEGRA, 345 { .compatible = TEGRA_19x_GPU_COMPAT_TEGRA,
348 .data = &t19x_gpu_tegra_platform }, 346 .data = &t19x_gpu_tegra_platform },
@@ -1035,11 +1033,9 @@ static int nvgpu_read_fuse_overrides(struct gk20a *g)
1035 case GM20B_FUSE_OPT_TPC_DISABLE: 1033 case GM20B_FUSE_OPT_TPC_DISABLE:
1036 g->tpc_fs_mask_user = ~value; 1034 g->tpc_fs_mask_user = ~value;
1037 break; 1035 break;
1038#ifdef CONFIG_ARCH_TEGRA_18x_SOC
1039 case GP10B_FUSE_OPT_ECC_EN: 1036 case GP10B_FUSE_OPT_ECC_EN:
1040 g->gr.t18x.fecs_feature_override_ecc_val = value; 1037 g->gr.fecs_feature_override_ecc_val = value;
1041 break; 1038 break;
1042#endif
1043 default: 1039 default:
1044 nvgpu_err(g, "ignore unknown fuse override %08x", fuse); 1040 nvgpu_err(g, "ignore unknown fuse override %08x", fuse);
1045 break; 1041 break;
@@ -1184,9 +1180,7 @@ int nvgpu_remove(struct device *dev, struct class *class)
1184 if (IS_ENABLED(CONFIG_GK20A_DEVFREQ)) 1180 if (IS_ENABLED(CONFIG_GK20A_DEVFREQ))
1185 gk20a_scale_exit(dev); 1181 gk20a_scale_exit(dev);
1186 1182
1187#ifdef CONFIG_ARCH_TEGRA_18x_SOC
1188 nvgpu_clk_arb_cleanup_arbiter(g); 1183 nvgpu_clk_arb_cleanup_arbiter(g);
1189#endif
1190 1184
1191 gk20a_user_deinit(dev, class); 1185 gk20a_user_deinit(dev, class);
1192 1186