summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2016-10-29 17:11:19 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-12-07 18:01:17 -0500
commit60a9fcb467a631b3631dbd6058b036223d6d89a3 (patch)
treee39075c7b6803008c07f456a87c1a5098071f865 /drivers/gpu/nvgpu/gk20a/gk20a.c
parenta8f90069e985ef93435e843824edf36e95040233 (diff)
gpu: nvgpu: fix clock controls compile
Add clock controls only for ARCH_T18x and later. Jira DNVGPU-125 Change-Id: Iab7c831aec925253dd3d9336c653305cb96e052c Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1244932 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 03bbf72f..8a1df1cc 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -972,13 +972,13 @@ int gk20a_pm_finalize_poweron(struct device *dev)
972 goto done; 972 goto done;
973 } 973 }
974 } 974 }
975#endif
976 975
977 err = nvgpu_clk_arb_init_arbiter(g); 976 err = nvgpu_clk_arb_init_arbiter(g);
978 if (err) { 977 if (err) {
979 gk20a_err(dev, "failed to init clk arb"); 978 gk20a_err(dev, "failed to init clk arb");
980 goto done; 979 goto done;
981 } 980 }
981#endif
982 982
983 if (g->ops.pmu.is_pmu_supported(g)) { 983 if (g->ops.pmu.is_pmu_supported(g)) {
984 err = gk20a_init_pmu_support(g); 984 err = gk20a_init_pmu_support(g);
@@ -1650,7 +1650,9 @@ static int __exit gk20a_remove(struct platform_device *pdev)
1650 if (platform->has_ce) 1650 if (platform->has_ce)
1651 gk20a_ce_destroy(g); 1651 gk20a_ce_destroy(g);
1652 1652
1653#ifdef CONFIG_ARCH_TEGRA_18x_SOC
1653 nvgpu_clk_arb_cleanup_arbiter(g); 1654 nvgpu_clk_arb_cleanup_arbiter(g);
1655#endif
1654 1656
1655 gk20a_user_deinit(dev, &nvgpu_class); 1657 gk20a_user_deinit(dev, &nvgpu_class);
1656 1658