summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/tegra/linux/platform_gp10b_tegra.c3
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
73int gp10b_tegra_get_clocks(struct device *dev) 73int 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;