From e8bac374c0ed24f05bf389e1e8b5aca47f61bd3a Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 29 Mar 2016 16:02:34 -0700 Subject: 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 Reviewed-on: http://git-master/r/1120466 --- drivers/gpu/nvgpu/platform_tegra.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'drivers/gpu/nvgpu/platform_tegra.h') 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 @@ /* - * drivers/video/tegra/host/gk20a/soc/platform_gk20a.h - * * GK20A Platform (SoC) Interface * - * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -23,9 +21,9 @@ struct platform_device; struct gr_ctx_buffer_desc; -int gk20a_tegra_secure_alloc(struct platform_device *pdev, +int gk20a_tegra_secure_alloc(struct device *dev, struct gr_ctx_buffer_desc *desc, size_t size); -int gk20a_tegra_secure_page_alloc(struct platform_device *pdev); +int gk20a_tegra_secure_page_alloc(struct device *dev); #endif -- cgit v1.2.2