From 9ed62f2ef816d4bc6ee82121d4bf8ecb9bb4127c Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 21 Feb 2025 09:26:27 +0000 Subject: [PATCH] Revert "cpufreq: fix using cpufreq-dt as module" This reverts commit 9325895e4162bc27c4dff5e4b9291514a9ca3dd1 which is commit f1f010c9d9c62c865d9f54e94075800ba764b4d9 upstream. It breaks the rockpi build target, as it expects it to be a module, and the change here (autoloading the code), is not an issue as it does work properly in Android targets and does not need to be built-in all the time anymore. Fixes: 9325895e4162 ("cpufreq: fix using cpufreq-dt as module") Change-Id: Ifd5e1e5e4611b2aae4361302e9d1836a360b0add Signed-off-by: Greg Kroah-Hartman --- drivers/cpufreq/Kconfig | 2 +- drivers/cpufreq/cpufreq-dt-platdev.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 411c4475b792..655cf9468039 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -239,7 +239,7 @@ config CPUFREQ_VIRT If in doubt, say N. config CPUFREQ_DT_PLATDEV - bool "Generic DT based cpufreq platdev driver" + tristate "Generic DT based cpufreq platdev driver" depends on OF help This adds a generic DT based cpufreq platdev driver for frequency diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 78ad3221fe07..18942bfe9c95 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -234,3 +234,5 @@ create_pdev: sizeof(struct cpufreq_dt_platform_data))); } core_initcall(cpufreq_dt_platdev_init); +MODULE_DESCRIPTION("Generic DT based cpufreq platdev driver"); +MODULE_LICENSE("GPL");