diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-14 16:11:18 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-19 16:24:30 -0400 |
commit | 6df49a63ca5f9d77a6d7d6c7dbaaa0fba1b707ca (patch) | |
tree | b50c57b2759fb4a20390880ea5b5d874d324d046 /drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c | |
parent | 15e9b433f3a33f4d68582d8eeabfcfd32db8c340 (diff) |
gpu: nvgpu: Move is_fmodel to struct gk20a
Copy is_fmodel to struct gk20a at probe time, and access it from
gk20a instead of platform_gk20a.
JIRA NVGPU-16
Change-Id: Ib8d793ea2b02b62da3bfdbb6372d9927658b7ec6
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1463540
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c index 26ac44a3..d04a2885 100644 --- a/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c | |||
@@ -72,10 +72,11 @@ static void gr_gp10b_remove_sysfs(struct device *dev); | |||
72 | 72 | ||
73 | int gp10b_tegra_get_clocks(struct device *dev) | 73 | int gp10b_tegra_get_clocks(struct device *dev) |
74 | { | 74 | { |
75 | struct gk20a *g = get_gk20a(dev); | ||
75 | struct gk20a_platform *platform = dev_get_drvdata(dev); | 76 | struct gk20a_platform *platform = dev_get_drvdata(dev); |
76 | unsigned int i; | 77 | unsigned int i; |
77 | 78 | ||
78 | if (platform->is_fmodel) | 79 | if (g->is_fmodel) |
79 | return 0; | 80 | return 0; |
80 | 81 | ||
81 | platform->num_clks = 0; | 82 | platform->num_clks = 0; |