mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +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_irq.c - This file is part of NVIDIA MODS kernel driver.
|
||||
*
|
||||
* Copyright (c) 2008-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2008-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,
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <linux/poll.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/pci_regs.h>
|
||||
#if defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_OF) && defined(CONFIG_OF_IRQ)
|
||||
#if defined(MODS_HAS_TEGRA) && defined(CONFIG_OF) && defined(CONFIG_OF_IRQ)
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_irq.h>
|
||||
#include <linux/io.h>
|
||||
@@ -1485,7 +1485,7 @@ int esc_mods_irq_handled(struct mods_client *client,
|
||||
return esc_mods_irq_handled_2(client, ®ister_irq);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_OF_IRQ) && defined(CONFIG_OF)
|
||||
#if defined(MODS_HAS_TEGRA) && defined(CONFIG_OF_IRQ) && defined(CONFIG_OF)
|
||||
int esc_mods_map_irq(struct mods_client *client,
|
||||
struct MODS_DT_INFO *p)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user