Skip to content

Commit 34efe5d

Browse files
cyringCyrIng
authored and
CyrIng
committed
Take into account the cpufreq_unregister_driver prototype change
* starting from Kernel 6.3 * unconditionally with CachyOS
1 parent 453b8b9 commit 34efe5d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

corefreqk.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -20623,7 +20623,12 @@ static int CoreFreqK_FreqDriver_UnInit(void)
2062320623
{
2062420624
int rc = -EINVAL;
2062520625
#ifdef CONFIG_CPU_FREQ
20626-
rc = cpufreq_unregister_driver(&CoreFreqK.FreqDriver);
20626+
#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);
2062720632
#endif /* CONFIG_CPU_FREQ */
2062820633
return rc;
2062920634
}

0 commit comments

Comments
 (0)