We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cpufreq_unregister_driver
1 parent 453b8b9 commit 34efe5dCopy full SHA for 34efe5d
corefreqk.c
@@ -20623,7 +20623,12 @@ static int CoreFreqK_FreqDriver_UnInit(void)
20623
{
20624
int rc = -EINVAL;
20625
#ifdef CONFIG_CPU_FREQ
20626
- rc = cpufreq_unregister_driver(&CoreFreqK.FreqDriver);
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)) && (!defined(CONFIG_CACHY))
20627
+ rc =
20628
+#else
20629
+ rc = 0;
20630
+#endif
20631
+ cpufreq_unregister_driver(&CoreFreqK.FreqDriver);
20632
#endif /* CONFIG_CPU_FREQ */
20633
return rc;
20634
}
0 commit comments