diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index f6c9f901..eb6774da 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -1311,10 +1311,12 @@ static int gk20a_secure_page_alloc(struct platform_device *pdev) | |||
1311 | int err = 0; | 1311 | int err = 0; |
1312 | 1312 | ||
1313 | if (platform->secure_page_alloc) { | 1313 | if (platform->secure_page_alloc) { |
1314 | tegra_periph_reset_assert(platform->clk[0]); | 1314 | if (platform->num_clks > 0) |
1315 | tegra_periph_reset_assert(platform->clk[0]); | ||
1315 | udelay(10); | 1316 | udelay(10); |
1316 | err = platform->secure_page_alloc(pdev); | 1317 | err = platform->secure_page_alloc(pdev); |
1317 | tegra_periph_reset_deassert(platform->clk[0]); | 1318 | if (platform->num_clks > 0) |
1319 | tegra_periph_reset_deassert(platform->clk[0]); | ||
1318 | } | 1320 | } |
1319 | 1321 | ||
1320 | if (!err) | 1322 | if (!err) |