From d272130e01fa2e4329b776bd011a667688fefe49 Mon Sep 17 00:00:00 2001 From: Ajit Singh Date: Sat, 23 Nov 2024 17:48:50 +0530 Subject: [PATCH] cpufreq: rockchip: fix incorrect config flag Using the `CONFIG_ARCH_ROCKCHIP` flag for function calls to `rockchip_cpufreq_online` and `rockchip_cpufreq_offline` is incorrect. These functions are declared under the `CONFIG_ARM_ROCKCHIP_CPUFREQ` flag. As a result, using `CONFIG_ARCH_ROCKCHIP` can lead to implicit declaration errors if the correct config flag (`CONFIG_ARM_ROCKCHIP_CPUFREQ`) is not enabled. This patch updates the conditional preprocessor directive to use `CONFIG_ARM_ROCKCHIP_CPUFREQ`, ensuring consistency with the function declarations and preventing potential compilation issues. Signed-off-by: Ajit Singh --- drivers/cpufreq/cpufreq-dt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c index 7bd9c1726273..0a42d05df86f 100644 --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c @@ -160,7 +160,7 @@ out_clk_put: static int cpufreq_online(struct cpufreq_policy *policy) { -#ifdef CONFIG_ARCH_ROCKCHIP +#ifdef CONFIG_ARM_ROCKCHIP_CPUFREQ return rockchip_cpufreq_online(policy->cpu); #endif /* We did light-weight tear down earlier, nothing to do here */ @@ -169,7 +169,7 @@ static int cpufreq_online(struct cpufreq_policy *policy) static int cpufreq_offline(struct cpufreq_policy *policy) { -#ifdef CONFIG_ARCH_ROCKCHIP +#ifdef CONFIG_ARM_ROCKCHIP_CPUFREQ return rockchip_cpufreq_offline(policy->cpu); #endif /*