summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrIng <labs@cyring.fr>2023-03-02 08:29:21 +0000
committerCyrIng <cyril.ingenierie@gmail.com>2023-03-02 08:29:21 +0000
commit34efe5d3e6c79e5fddf78350da6fe4b7de0a63a8 (patch)
tree4636ded1d47caea8c47b90a3018b5c7231b02a75
parent453b8b9db471ff1b631ceb3e61cf14942506bba5 (diff)
Take into account the `cpufreq_unregister_driver` prototype change1.95.5
* starting from Kernel 6.3 * unconditionally with CachyOS
-rw-r--r--corefreqk.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/corefreqk.c b/corefreqk.c
index 74d2817..6bb641d 100644
--- a/corefreqk.c
+++ b/corefreqk.c
@@ -20623,7 +20623,12 @@ static int CoreFreqK_FreqDriver_UnInit(void)
{
int rc = -EINVAL;
#ifdef CONFIG_CPU_FREQ
- rc = cpufreq_unregister_driver(&CoreFreqK.FreqDriver);
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)) && (!defined(CONFIG_CACHY))
+ rc =
+#else
+ rc = 0;
+#endif
+ cpufreq_unregister_driver(&CoreFreqK.FreqDriver);
#endif /* CONFIG_CPU_FREQ */
return rc;
}