summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-08-22 11:31:32 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-22 15:44:41 -0400
commitbc87e8989ddf2f74ff2c988a25e4a81e559a5c30 (patch)
treeb8c45cecf50e3e3bb8967952de9f5047de60683f /drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c
parent587666bd6cbb60e52698052c2b5c4a74f2165ecd (diff)
gpu: nvgpu: Remove support for old kernel version
Remove support for pre-4.4 kernels. This allows deleting the checks for kernel version, and usage of linux/version.h. Change-Id: I4d6cb30512ea164d27549f4f4d096e5931bb1379 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1543499 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c
index 71081be5..2c556d8a 100644
--- a/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c
+++ b/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c
@@ -13,7 +13,6 @@
13 * more details. 13 * more details.
14 */ 14 */
15 15
16#include <linux/version.h>
17#include <linux/of_platform.h> 16#include <linux/of_platform.h>
18#include <linux/debugfs.h> 17#include <linux/debugfs.h>
19#include <linux/platform_data/tegra_edp.h> 18#include <linux/platform_data/tegra_edp.h>
@@ -822,10 +821,8 @@ static int gk20a_tegra_probe(struct device *dev)
822 dev_warn(dev, "board does not support scaling"); 821 dev_warn(dev, "board does not support scaling");
823 } 822 }
824 platform->g->clk.gpc_pll.id = GM20B_GPC_PLL_B1; 823 platform->g->clk.gpc_pll.id = GM20B_GPC_PLL_B1;
825#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0))
826 if (tegra_chip_get_revision() > TEGRA210_REVISION_A04p) 824 if (tegra_chip_get_revision() > TEGRA210_REVISION_A04p)
827 platform->g->clk.gpc_pll.id = GM20B_GPC_PLL_C1; 825 platform->g->clk.gpc_pll.id = GM20B_GPC_PLL_C1;
828#endif
829 } 826 }
830 827
831 if (tegra_get_chip_id() == TEGRA132) 828 if (tegra_get_chip_id() == TEGRA132)
@@ -841,9 +838,7 @@ static int gk20a_tegra_probe(struct device *dev)
841 return ret; 838 return ret;
842 } 839 }
843 840
844#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0))
845 pmc = ioremap(TEGRA_PMC_BASE, 4096); 841 pmc = ioremap(TEGRA_PMC_BASE, 4096);
846#endif
847 842
848 return 0; 843 return 0;
849} 844}