From be41a4158c69573c8080848d33c30c8c28f01367 Mon Sep 17 00:00:00 2001 From: Ahmad Chaudhry Date: Fri, 12 Apr 2024 16:23:15 +0000 Subject: [PATCH] tegra: hwpm: fix acpi compilation error ACPI configs are not required for aaos as aaos is booted with dtb and not acpi. Disabling CONFIG_ACPI results in a build failure as it's undefined in the #if directive so adding this check to see whether it is defined resolves the issue and allows aaos to build successfully with CONFIG_ACPI disabled Bug 4559177 Change-Id: I9f068c373d6dc57acb610a107eb8a2e90a0e944b Signed-off-by: Ahmad Chaudhry Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3115456 Reviewed-by: Vasuki Shankar GVS: Gerrit_Virtual_Submit Reviewed-by: Vedashree Vidwans --- drivers/tegra/hwpm/os/linux/soc_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tegra/hwpm/os/linux/soc_utils.c b/drivers/tegra/hwpm/os/linux/soc_utils.c index d4d66eb..4dd2b61 100644 --- a/drivers/tegra/hwpm/os/linux/soc_utils.c +++ b/drivers/tegra/hwpm/os/linux/soc_utils.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -15,7 +15,7 @@ */ #include -#if CONFIG_ACPI +#if defined(CONFIG_ACPI) #include #endif #include