gpu: nvgpu: Pass struct gk20a to secure alloc

Pass struct gk20a to secure alloc API instead of Linux specific
struct device.

JIRA NVGPU-38

Change-Id: I6d9afaeeff9b957351072caa29690f2caf58f858
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1505179
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2017-06-19 14:23:16 -07:00
committed by mobile promotions
parent 9f65627d0e
commit 0b6eff2965
5 changed files with 10 additions and 10 deletions

View File

@@ -984,7 +984,7 @@ static int __exit gk20a_remove(struct platform_device *pdev)
gk20a_remove_sysfs(dev);
if (platform->secure_buffer.destroy)
platform->secure_buffer.destroy(dev,
platform->secure_buffer.destroy(g,
&platform->secure_buffer);
if (pm_runtime_enabled(dev))