summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/platform_tegra.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-03-29 19:02:34 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-04-08 12:42:41 -0400
commite8bac374c0ed24f05bf389e1e8b5aca47f61bd3a (patch)
tree36b6e111f8706c0560ee552bc9d6e15b87fc9621 /drivers/gpu/nvgpu/platform_tegra.h
parent2382a8433fddaee3baecff6ae941944850787ab7 (diff)
gpu: nvgpu: Use device instead of platform_device
Use struct device instead of struct platform_device wherever possible. This allows adding other bus types later. Change-Id: I1657287a68d85a542cdbdd8a00d1902c3d6e00ed Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1120466
Diffstat (limited to 'drivers/gpu/nvgpu/platform_tegra.h')
-rw-r--r--drivers/gpu/nvgpu/platform_tegra.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/platform_tegra.h b/drivers/gpu/nvgpu/platform_tegra.h
index 6fa13831..815ac657 100644
--- a/drivers/gpu/nvgpu/platform_tegra.h
+++ b/drivers/gpu/nvgpu/platform_tegra.h
@@ -1,9 +1,7 @@
1/* 1/*
2 * drivers/video/tegra/host/gk20a/soc/platform_gk20a.h
3 *
4 * GK20A Platform (SoC) Interface 2 * GK20A Platform (SoC) Interface
5 * 3 *
6 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
7 * 5 *
8 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
9 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -23,9 +21,9 @@
23struct platform_device; 21struct platform_device;
24struct gr_ctx_buffer_desc; 22struct gr_ctx_buffer_desc;
25 23
26int gk20a_tegra_secure_alloc(struct platform_device *pdev, 24int gk20a_tegra_secure_alloc(struct device *dev,
27 struct gr_ctx_buffer_desc *desc, 25 struct gr_ctx_buffer_desc *desc,
28 size_t size); 26 size_t size);
29int gk20a_tegra_secure_page_alloc(struct platform_device *pdev); 27int gk20a_tegra_secure_page_alloc(struct device *dev);
30 28
31#endif 29#endif