Date: Fri, 6 May 2022 23:25:16 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2fdcc2ef6f74 - main - cpufreq: Remove unused devclass argument to DRIVER_MODULE. Message-ID: <202205062325.246NPGAs075670@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205062325.246NPGAs075670>