mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 17:55:05 +03:00
misc: mods: Replace CONFIG_ARCH_TEGRA
The perforce version of the MODS kernel driver does not pull in any of the Tegra specific driver functions. This prevents the perforce driver from being compiled on any Tegra system or non Tegra system with CONFIG_ARCH_TEGRA=y. To allow the perforce driver to be compiled replace CONFIG_ARCH_TEGRA with MODS_HAS_TEGRA which is set based on CONFIG_ARCH_TEGRA in git but left unset in perforce. Bug 3397113 Signed-off-by: Lael Jones <lajones@nvidia.com> Change-Id: Ie113d632c4dcc372058b9a1e3a549a70b8f7c03f Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2607859 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Chris Dragan <kdragan@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
1658071414
commit
2ce330f11a
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* mods_debugfs.c - This file is part of NVIDIA MODS kernel driver.
|
||||
*
|
||||
* Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* NVIDIA MODS kernel driver is free software: you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License,
|
||||
@@ -33,7 +33,7 @@ static struct dentry *mods_debugfs_dir;
|
||||
#include "mods_ras.h"
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_TEGRA_KFUSE)
|
||||
#if defined(MODS_HAS_TEGRA) && defined(CONFIG_TEGRA_KFUSE)
|
||||
#include <soc/tegra/kfuse.h>
|
||||
#endif
|
||||
|
||||
@@ -423,7 +423,7 @@ static const struct file_operations mods_dc_crc_latched_fops = {
|
||||
};
|
||||
#endif /* CONFIG_TEGRA_DC */
|
||||
|
||||
#if defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_TEGRA_KFUSE)
|
||||
#if defined(MODS_HAS_TEGRA) && defined(CONFIG_TEGRA_KFUSE)
|
||||
static int mods_kfuse_show(struct seq_file *s, void *unused)
|
||||
{
|
||||
unsigned int buf[KFUSE_DATA_SZ / 4];
|
||||
@@ -453,7 +453,7 @@ static const struct file_operations mods_kfuse_fops = {
|
||||
.llseek = seq_lseek,
|
||||
.release = single_release,
|
||||
};
|
||||
#endif /* CONFIG_ARCH_TEGRA */
|
||||
#endif /* MODS_HAS_TEGRA */
|
||||
|
||||
static int mods_debug_get(void *data, u64 *val)
|
||||
{
|
||||
@@ -617,7 +617,7 @@ int mods_create_debugfs(struct miscdevice *modsdev)
|
||||
goto remove_out;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_TEGRA_KFUSE)
|
||||
#if defined(MODS_HAS_TEGRA) && defined(CONFIG_TEGRA_KFUSE)
|
||||
retval = debugfs_create_file("kfuse_data", 0444,
|
||||
mods_debugfs_dir, 0, &mods_kfuse_fops);
|
||||
if (IS_ERR(retval)) {
|
||||
|
||||
Reference in New Issue
Block a user