From 15d1f96bd8d7ff9930bf2e2c3616435c762edeb0 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Tue, 18 Apr 2023 16:02:32 +0000 Subject: [PATCH] mods: Get rid of non-module build mods driver inside the nvidia-oot is always build as module. Remove the handling of non-module build. Bug 4074863 Change-Id: I11a22c181e159e81328fa8e2d77d1b5bc4474d94 Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2890061 Tested-by: Chris Dragan Reviewed-by: svcacv GVS: Gerrit_Virtual_Submit --- drivers/misc/mods/Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/misc/mods/Makefile b/drivers/misc/mods/Makefile index 87df1a1e..5edad78c 100644 --- a/drivers/misc/mods/Makefile +++ b/drivers/misc/mods/Makefile @@ -1,13 +1,10 @@ # SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. ccflags-y += -I$(srctree.nvidia)/include ccflags-y += -DMODS_HAS_TEGRA -ifeq ($(CONFIG_TEGRA_OOT_MODULE),m) -CONFIG_MODS := m -endif - -obj-$(CONFIG_MODS) := mods.o +obj-m += mods.o mods-y := mods_irq.o mods-y += mods_krnl.o