summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2017-01-31 16:41:14 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-02-09 14:24:25 -0500
commite4a17d6379009adcd0ada768be6b0420f7f0f137 (patch)
tree70dc9f41b6a710a827cb25b357f4c7fe4dc43903
parent73243017514ac509c3a91224286f2bcf9f5a95bd (diff)
gpu: nvgpu: gp10b: removed static keyword
Removed static keyword for t19x usage -int gp10b_tegra_get_clocks(struct device *dev); -int gp10b_tegra_reset_assert(struct device *dev); -int gp10b_tegra_reset_deassert(struct device *dev); JIRA GV11B-34 Change-Id: I0bcb02db431b3a11f1b0e40776698c5dd3a9703d Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: http://git-master/r/1296847 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/gp10b/platform_gp10b.h25
-rw-r--r--drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c6
2 files changed, 28 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b.h b/drivers/gpu/nvgpu/gp10b/platform_gp10b.h
new file mode 100644
index 00000000..66261989
--- /dev/null
+++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b.h
@@ -0,0 +1,25 @@
1/*
2 * GP10B Platform (SoC) Interface
3 *
4 * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 */
15
16#ifndef _GP10B_PLATFORM_H_
17#define _GP10B_PLATFORM_H_
18
19struct device;
20
21int gp10b_tegra_get_clocks(struct device *dev);
22int gp10b_tegra_reset_assert(struct device *dev);
23int gp10b_tegra_reset_deassert(struct device *dev);
24
25#endif
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
index 90d0bb57..6795c99a 100644
--- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
+++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c
@@ -69,7 +69,7 @@ static void gr_gp10b_remove_sysfs(struct device *dev);
69 * the clock information to gp10b platform data. 69 * the clock information to gp10b platform data.
70 */ 70 */
71 71
72static int gp10b_tegra_get_clocks(struct device *dev) 72int gp10b_tegra_get_clocks(struct device *dev)
73{ 73{
74 struct gk20a_platform *platform = dev_get_drvdata(dev); 74 struct gk20a_platform *platform = dev_get_drvdata(dev);
75 unsigned int i; 75 unsigned int i;
@@ -264,7 +264,7 @@ static int gp10b_tegra_suspend(struct device *dev)
264 return 0; 264 return 0;
265} 265}
266 266
267static int gp10b_tegra_reset_assert(struct device *dev) 267int gp10b_tegra_reset_assert(struct device *dev)
268{ 268{
269 struct gk20a_platform *platform = gk20a_get_platform(dev); 269 struct gk20a_platform *platform = gk20a_get_platform(dev);
270 int ret = 0; 270 int ret = 0;
@@ -277,7 +277,7 @@ static int gp10b_tegra_reset_assert(struct device *dev)
277 return ret; 277 return ret;
278} 278}
279 279
280static int gp10b_tegra_reset_deassert(struct device *dev) 280int gp10b_tegra_reset_deassert(struct device *dev)
281{ 281{
282 struct gk20a_platform *platform = gk20a_get_platform(dev); 282 struct gk20a_platform *platform = gk20a_get_platform(dev);
283 int ret = 0; 283 int ret = 0;