mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
587666bd6c
commit
bc87e8989d
@@ -17,7 +17,6 @@
|
||||
*/
|
||||
|
||||
#include <linux/clk.h>
|
||||
#include <linux/version.h>
|
||||
|
||||
#include <soc/tegra/tegra-dvfs.h>
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
#include <linux/dma-attrs.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/version.h>
|
||||
|
||||
#include <nvgpu/dma.h>
|
||||
#include <nvgpu/lock.h>
|
||||
|
||||
@@ -44,14 +44,10 @@ static const struct firmware *do_request_firmware(struct device *dev,
|
||||
fw_name = fw_path;
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,18,0)
|
||||
err = request_firmware(&fw, fw_name, dev);
|
||||
#else
|
||||
if (flags & NVGPU_REQUEST_FIRMWARE_NO_WARN)
|
||||
err = request_firmware_direct(&fw, fw_name, dev);
|
||||
else
|
||||
err = request_firmware(&fw, fw_name, dev);
|
||||
#endif
|
||||
|
||||
nvgpu_kfree(get_gk20a(dev), fw_path);
|
||||
if (err)
|
||||
|
||||
@@ -1025,9 +1025,7 @@ static struct platform_driver gk20a_driver = {
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "gk20a",
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
#endif
|
||||
#ifdef CONFIG_OF
|
||||
.of_match_table = tegra_gk20a_of_match,
|
||||
#endif
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
* more details.
|
||||
*/
|
||||
|
||||
#include <linux/version.h>
|
||||
#include <linux/of_platform.h>
|
||||
#include <linux/debugfs.h>
|
||||
#include <linux/platform_data/tegra_edp.h>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <linux/version.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/fb.h>
|
||||
|
||||
Reference in New Issue
Block a user