Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpufreq: rockchip: fix incorrect config flag #383

Open
wants to merge 1 commit into
base: linux-6.1-stan-rkr4.1
Choose a base branch
from

Conversation

peonix0
Copy link

@peonix0 peonix0 commented Nov 23, 2024

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 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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant