From 81660ab58ce695b79c94e145745512516c592afe Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 7 Sep 2016 14:21:16 -0700 Subject: gpu: nvgpu: Enable CE always All GPUs have a copy engine. So delete the flag has_ce, because it's always true. JIRA NVGPU-16 Change-Id: I89db74c7cf66b24db84301b79832862ef28100b9 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1325355 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 59f16bf6..2046c08e 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -443,8 +443,7 @@ static int gk20a_pm_prepare_poweroff(struct device *dev) /* cancel any pending cde work */ gk20a_cde_suspend(g); - if (platform->has_ce) - gk20a_ce_suspend(g); + gk20a_ce_suspend(g); ret = gk20a_channel_suspend(g); if (ret) @@ -710,8 +709,7 @@ int gk20a_pm_finalize_poweron(struct device *dev) if (platform->has_cde) gk20a_init_cde_support(g); - if (platform->has_ce) - gk20a_init_ce_support(g); + gk20a_init_ce_support(g); gk20a_init_mm_ce_context(g); @@ -1302,8 +1300,7 @@ static int __exit gk20a_remove(struct platform_device *pdev) if (g->remove_support) g->remove_support(dev); - if (platform->has_ce) - gk20a_ce_destroy(g); + gk20a_ce_destroy(g); #ifdef CONFIG_ARCH_TEGRA_18x_SOC nvgpu_clk_arb_cleanup_arbiter(g); -- cgit v1.2.2