From a9e9f0cde1ea89b97cbdfdae8599179401f5ebb8 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Tue, 18 Apr 2023 14:46:30 +0000 Subject: [PATCH] dce: Get rid of CONFIG_TEGRA_DCE The config variable CONFIG_TEGRA_DCE is set as m inside the Makefile for OOT build. As the dce driver inside nvidia-oot only build as module and there is no Kconfig, remove this config variable. Bug 4074863 Change-Id: I16436e97db583f2a8184dfffc3e18ebfddb62967 Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2889992 Reviewed-by: svcacv Reviewed-by: Jonathan Hunter GVS: Gerrit_Virtual_Submit --- drivers/platform/tegra/dce/Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/platform/tegra/dce/Makefile b/drivers/platform/tegra/dce/Makefile index db0f788a..811b1f63 100644 --- a/drivers/platform/tegra/dce/Makefile +++ b/drivers/platform/tegra/dce/Makefile @@ -13,14 +13,10 @@ ifeq ($(VERSION),4) ccflags-y += -Wextra -Wno-unused-parameter -Wno-missing-field-initializers endif -# Set config when build as OOT module. -ifeq ($(CONFIG_TEGRA_OOT_MODULE),m) -CONFIG_TEGRA_DCE := m ccflags-y += -I$(srctree.nvidia)/include -endif -obj-$(CONFIG_TEGRA_DCE) += tegra-dce.o -tegra-dce-$(CONFIG_TEGRA_DCE) += \ +obj-m += tegra-dce.o +tegra-dce-objs += \ dce-ast.o \ dce-reset.o \ dce-hsp-smb.o \ @@ -39,7 +35,7 @@ tegra-dce-$(CONFIG_TEGRA_DCE) += \ dce-util-common.o ifeq ($(CONFIG_DEBUG_FS),y) -tegra-dce-$(CONFIG_TEGRA_DCE) += \ +tegra-dce-objs += \ dce-debug.o \ dce-admin-debug.o \ dce-debug-perf.o