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:
Lael Jones
2021-10-08 08:07:07 -07:00
committed by Laxman Dewangan
parent 1658071414
commit 2ce330f11a
6 changed files with 35 additions and 31 deletions

View File

@@ -96,4 +96,8 @@
# define MODS_HAS_ARM64_READ_FTR_REG 1
#endif
#if defined(CONFIG_ARCH_TEGRA)
# define MODS_HAS_TEGRA 1
#endif
#endif /* _MODS_CONFIG_H_ */