diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c index ff9e0fc1..d7642182 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/pm_runtime.h> | 23 | #include <linux/pm_runtime.h> |
24 | #include <linux/fb.h> | 24 | #include <linux/fb.h> |
25 | #include <linux/gk20a.h> | 25 | #include <linux/gk20a.h> |
26 | #include <linux/clk/tegra.h> | ||
27 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)) | 26 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)) |
28 | #include <soc/tegra/tegra-dvfs.h> | 27 | #include <soc/tegra/tegra-dvfs.h> |
29 | #endif | 28 | #endif |
@@ -717,9 +716,6 @@ static ssize_t fmax_at_vmin_safe_read(struct device *dev, | |||
717 | unsigned long gpu_fmax_at_vmin_hz = 0; | 716 | unsigned long gpu_fmax_at_vmin_hz = 0; |
718 | struct clk *clk = g->clk.tegra_clk; | 717 | struct clk *clk = g->clk.tegra_clk; |
719 | 718 | ||
720 | #ifdef CONFIG_TEGRA_CLK_FRAMEWORK | ||
721 | clk = clk_get_parent(clk); | ||
722 | #endif | ||
723 | gpu_fmax_at_vmin_hz = tegra_dvfs_get_fmax_at_vmin_safe_t(clk); | 719 | gpu_fmax_at_vmin_hz = tegra_dvfs_get_fmax_at_vmin_safe_t(clk); |
724 | 720 | ||
725 | return snprintf(buf, PAGE_SIZE, "%d\n", (int)(gpu_fmax_at_vmin_hz)); | 721 | return snprintf(buf, PAGE_SIZE, "%d\n", (int)(gpu_fmax_at_vmin_hz)); |