git: 2fdcc2ef6f74 - main - cpufreq: Remove unused devclass argument to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 23:25:16 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=2fdcc2ef6f74f308fbc412438777381c01f046a7
commit 2fdcc2ef6f74f308fbc412438777381c01f046a7
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-06 22:46:58 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-06 22:46:58 +0000
cpufreq: Remove unused devclass argument to DRIVER_MODULE.
---
sys/kern/kern_cpu.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sys/kern/kern_cpu.c b/sys/kern/kern_cpu.c
index 61b014468292..37c0aa8aab6a 100644
--- a/sys/kern/kern_cpu.c
+++ b/sys/kern/kern_cpu.c
@@ -128,11 +128,12 @@ static device_method_t cpufreq_methods[] = {
DEVMETHOD(cpufreq_levels, cf_levels_method),
{0, 0}
};
+
static driver_t cpufreq_driver = {
"cpufreq", cpufreq_methods, sizeof(struct cpufreq_softc)
};
-static devclass_t cpufreq_dc;
-DRIVER_MODULE(cpufreq, cpu, cpufreq_driver, cpufreq_dc, 0, 0);
+
+DRIVER_MODULE(cpufreq, cpu, cpufreq_driver, 0, 0);
static int cf_lowest_freq;
static int cf_verbose;