diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c index c1ff34e3..e5d19976 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gp10b_tegra.c | |||
@@ -71,13 +71,9 @@ static void gr_gp10b_remove_sysfs(struct device *dev); | |||
71 | 71 | ||
72 | int gp10b_tegra_get_clocks(struct device *dev) | 72 | int gp10b_tegra_get_clocks(struct device *dev) |
73 | { | 73 | { |
74 | struct gk20a *g = get_gk20a(dev); | ||
75 | struct gk20a_platform *platform = dev_get_drvdata(dev); | 74 | struct gk20a_platform *platform = dev_get_drvdata(dev); |
76 | unsigned int i; | 75 | unsigned int i; |
77 | 76 | ||
78 | if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL)) | ||
79 | return 0; | ||
80 | |||
81 | platform->num_clks = 0; | 77 | platform->num_clks = 0; |
82 | for (i = 0; i < ARRAY_SIZE(tegra_gp10b_clocks); i++) { | 78 | for (i = 0; i < ARRAY_SIZE(tegra_gp10b_clocks); i++) { |
83 | long rate = tegra_gp10b_clocks[i].default_rate; | 79 | long rate = tegra_gp10b_clocks[i].default_rate; |