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 1. 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.
Using the
CONFIG_ARCH_ROCKCHIP
flag for function calls torockchip_cpufreq_online
androckchip_cpufreq_offline
is incorrect. These functions are declared under theCONFIG_ARM_ROCKCHIP_CPUFREQ
flag 1. As a result, usingCONFIG_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.