diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 4c6566a6..790b366c 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -1351,6 +1351,9 @@ int gk20a_secure_page_alloc(struct platform_device *pdev) | |||
1351 | tegra_periph_reset_deassert(platform->clk[0]); | 1351 | tegra_periph_reset_deassert(platform->clk[0]); |
1352 | } | 1352 | } |
1353 | 1353 | ||
1354 | if (!err) | ||
1355 | platform->secure_alloc_ready = true; | ||
1356 | |||
1354 | return err; | 1357 | return err; |
1355 | } | 1358 | } |
1356 | 1359 | ||
@@ -1453,10 +1456,9 @@ static int gk20a_probe(struct platform_device *dev) | |||
1453 | } | 1456 | } |
1454 | 1457 | ||
1455 | err = gk20a_secure_page_alloc(dev); | 1458 | err = gk20a_secure_page_alloc(dev); |
1456 | if (err) { | 1459 | if (err) |
1457 | dev_err(&dev->dev, "failed to allocate secure buffer\n"); | 1460 | dev_err(&dev->dev, |
1458 | return err; | 1461 | "failed to allocate secure buffer %d\n", err); |
1459 | } | ||
1460 | 1462 | ||
1461 | gk20a_debug_init(dev); | 1463 | gk20a_debug_init(dev); |
1462 | 1464 | ||