From 46858f60e815fb36552d4670034cd622579a9461 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 13 Dec 2022 19:18:15 +0000 Subject: [PATCH] mc-utils: Move driver into sub-directory The mc-utils driver shares a Makefile with several others drivers in the drivers/platform/tegra directory and this means that we cannot compile the mc-utils driver independently of these other drivers and package the mc-utils driver without all of the other drivers. Therefore, move the mc-utils driver into its own sub-directory and add its own Makefile so that we can build and package this driver independently. Bug 3841177 Signed-off-by: Jon Hunter Change-Id: If8962fc1ede9fb4318341a7961106f799156cdad Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2827672 (cherry picked from commit a18d0a5a739144dc00a7200ec53397966fc543ba) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2829120 Reviewed-by: Ketan Patil Reviewed-by: Bibek Basu Reviewed-by: Thierry Reding GVS: Gerrit_Virtual_Submit --- drivers/platform/tegra/Makefile | 2 +- drivers/platform/tegra/mc-utils/Makefile | 6 ++++++ drivers/platform/tegra/{ => mc-utils}/mc-utils.c | 0 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 drivers/platform/tegra/mc-utils/Makefile rename drivers/platform/tegra/{ => mc-utils}/mc-utils.c (100%) diff --git a/drivers/platform/tegra/Makefile b/drivers/platform/tegra/Makefile index 4b2ca553..87e0499f 100644 --- a/drivers/platform/tegra/Makefile +++ b/drivers/platform/tegra/Makefile @@ -25,6 +25,6 @@ obj-m += hwpm/ obj-m += mce/ obj-m += uncore_pmu/ obj-m += mc-hwpm.o -obj-m += mc-utils.o +obj-m += mc-utils/ obj-m += dce/ obj-m += rtcpu/ diff --git a/drivers/platform/tegra/mc-utils/Makefile b/drivers/platform/tegra/mc-utils/Makefile new file mode 100644 index 00000000..38ca50a5 --- /dev/null +++ b/drivers/platform/tegra/mc-utils/Makefile @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + +ccflags-y += -I$(srctree.nvidia)/include + +obj-m += mc-utils.o diff --git a/drivers/platform/tegra/mc-utils.c b/drivers/platform/tegra/mc-utils/mc-utils.c similarity index 100% rename from drivers/platform/tegra/mc-utils.c rename to drivers/platform/tegra/mc-utils/mc-utils.c