From bc87e8989ddf2f74ff2c988a25e4a81e559a5c30 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 22 Aug 2017 08:31:32 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1543499 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c') 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 @@ * more details. */ -#include #include #include #include @@ -822,10 +821,8 @@ static int gk20a_tegra_probe(struct device *dev) dev_warn(dev, "board does not support scaling"); } platform->g->clk.gpc_pll.id = GM20B_GPC_PLL_B1; -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)) if (tegra_chip_get_revision() > TEGRA210_REVISION_A04p) platform->g->clk.gpc_pll.id = GM20B_GPC_PLL_C1; -#endif } if (tegra_get_chip_id() == TEGRA132) @@ -841,9 +838,7 @@ static int gk20a_tegra_probe(struct device *dev) return ret; } -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)) pmc = ioremap(TEGRA_PMC_BASE, 4096); -#endif return 0; } -- cgit v1.2.2