From nobody Fri May 06 22:43:11 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 95DA91AB8C42; Fri, 6 May 2022 22:43:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kw5FD0j2dz3vf3; Fri, 6 May 2022 22:43:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651876992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8jDgHDH8ThLbbmSqCf9xRQVozaQfnk40QqCwCdyiCMk=; b=by3pPbZSqVwilyCOQRLGRV+U/hr5CAv1Dv2FAilnw7Z2VYjuQL83Vbs0pzVbu1+Z7TD9pq bxU/orBajzfUTWSGa7sCivEFgk7E7OLqDzeMlzuvJFIof3nIRXa6xTyXZ4657YrxUngH/3 Hew4GVHPQzQ5lyTVKx1rZNOke+cHBsRxlGK5ksA6LEk4lxgN2gu6QqaImY/ZzH/KVs+fVG D3frxMVVoBZI+WXPDm1Y9xABguHxoo/Q/029ZQFevkaK4N4tqFnyBRtm+3Bin1ihQNSU7y y5Y7dP9Z/0wz/MuIsn0V8WXmwzJbmAaoAhZi4wQAdehax6EAHx6398FEjEODoQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7B94E24A21; Fri, 6 May 2022 22:43:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 246MhBIe019359; Fri, 6 May 2022 22:43:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 246MhBK3019358; Fri, 6 May 2022 22:43:11 GMT (envelope-from git) Date: Fri, 6 May 2022 22:43:11 GMT Message-Id: <202205062243.246MhBK3019358@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: b3407dcc5883 - main - cpufreq: Remove unused devclass arguments to DRIVER_MODULE. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b3407dcc5883f2f465d44aed2d107606311731a4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651876992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8jDgHDH8ThLbbmSqCf9xRQVozaQfnk40QqCwCdyiCMk=; b=WKdpLYoUEMRGIV5r6OL+KBUFAMs7zim4UwGRgbAqcI3OmObZaWvHV8S2PGRnRLzP5WgIA8 54VjOKvlZ9PXEE4WJ/XnQY8e3+jkf17KK9WkpugbASJnSxpDqCWvi1DxapRqGznnctLf1x /Yz8K+gwozGrqJ5soYYTWY8LfSBymJxrrmP1idTNYyH+TIIDAe9vpuvt4irnq6BBI9tKP3 iCa3RO4XcEU56ogJvJNBaC1aDCQyCFf1SZ2Ai2nZKqRJ50nftXGUav42mB3rrLsZeQ7E3U EhJX0pPf2da5dM4X0IBOm6e5JfeatauUg1opRo4TzmrHzFaRJbPHSQzD4cBx0Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651876992; a=rsa-sha256; cv=none; b=bwpvRE7Ny8b2nVltCWCLtgnbZ6Fw+/Rs0TTCzHAxsmoki6TMGwL1jz9IZWOh6uTwqd+JoK C13LzzDjcTqh/2nJg/EFrF7Ltyr/PFarMX2OpZIzSYdyjaV3I2OWRDBRgmv+bPxnMfs74o PJ9X71xVhnxIJN1MrVhl/pLJp+XQmfb/BUZsv22iH5uHl5fJyhRU8dJsyQyPBzYafSAYGy NsB802Ybi3Z+3sfq2k9ykODLdHeHBBC3gu/puDSI/kvJzLqSqGnLVxNCFGsLqnHjulrK/K 9VsrgEALwO7NQEkk2AgO8pM5dNVdEFY4B10BNdBbpcdnFxlMAXP+EiZZ8fhQEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b3407dcc5883f2f465d44aed2d107606311731a4 commit b3407dcc5883f2f465d44aed2d107606311731a4 Author: John Baldwin AuthorDate: 2022-04-19 21:08:04 +0000 Commit: John Baldwin CommitDate: 2022-05-06 22:39:29 +0000 cpufreq: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/cpufreq/cpufreq_dt.c | 4 +--- sys/dev/cpufreq/ichss.c | 5 +++-- sys/powerpc/cpufreq/dfs.c | 3 +-- sys/powerpc/cpufreq/mpc85xx_jog.c | 3 +-- sys/powerpc/cpufreq/pcr.c | 3 +-- sys/powerpc/cpufreq/pmcr.c | 3 +-- sys/powerpc/cpufreq/pmufreq.c | 3 +-- sys/x86/cpufreq/est.c | 3 +-- sys/x86/cpufreq/hwpstate_amd.c | 3 +-- sys/x86/cpufreq/hwpstate_intel.c | 4 +--- sys/x86/cpufreq/p4tcc.c | 3 +-- sys/x86/cpufreq/powernow.c | 3 +-- sys/x86/cpufreq/smist.c | 4 ++-- 13 files changed, 16 insertions(+), 28 deletions(-) diff --git a/sys/dev/cpufreq/cpufreq_dt.c b/sys/dev/cpufreq/cpufreq_dt.c index ee5b15347fdc..a6c116f4aaa0 100644 --- a/sys/dev/cpufreq/cpufreq_dt.c +++ b/sys/dev/cpufreq/cpufreq_dt.c @@ -619,7 +619,5 @@ static driver_t cpufreq_dt_driver = { sizeof(struct cpufreq_dt_softc), }; -static devclass_t cpufreq_dt_devclass; - -DRIVER_MODULE(cpufreq_dt, cpu, cpufreq_dt_driver, cpufreq_dt_devclass, 0, 0); +DRIVER_MODULE(cpufreq_dt, cpu, cpufreq_dt_driver, 0, 0); MODULE_VERSION(cpufreq_dt, 1); diff --git a/sys/dev/cpufreq/ichss.c b/sys/dev/cpufreq/ichss.c index 3d0c09e06640..7c71824be10d 100644 --- a/sys/dev/cpufreq/ichss.c +++ b/sys/dev/cpufreq/ichss.c @@ -117,11 +117,12 @@ static device_method_t ichss_methods[] = { DEVMETHOD(cpufreq_drv_settings, ichss_settings), DEVMETHOD_END }; + static driver_t ichss_driver = { "ichss", ichss_methods, sizeof(struct ichss_softc) }; -static devclass_t ichss_devclass; -DRIVER_MODULE(ichss, cpu, ichss_driver, ichss_devclass, 0, 0); + +DRIVER_MODULE(ichss, cpu, ichss_driver, 0, 0); static device_t ich_device; diff --git a/sys/powerpc/cpufreq/dfs.c b/sys/powerpc/cpufreq/dfs.c index d5c605908951..6ee3fa7d48bc 100644 --- a/sys/powerpc/cpufreq/dfs.c +++ b/sys/powerpc/cpufreq/dfs.c @@ -71,8 +71,7 @@ static driver_t dfs_driver = { sizeof(struct dfs_softc) }; -static devclass_t dfs_devclass; -DRIVER_MODULE(dfs, cpu, dfs_driver, dfs_devclass, 0, 0); +DRIVER_MODULE(dfs, cpu, dfs_driver, 0, 0); /* * Bits of the HID1 register to enable DFS. See page 2-24 of "MPC7450 diff --git a/sys/powerpc/cpufreq/mpc85xx_jog.c b/sys/powerpc/cpufreq/mpc85xx_jog.c index ef2552f1485e..edced1237d71 100644 --- a/sys/powerpc/cpufreq/mpc85xx_jog.c +++ b/sys/powerpc/cpufreq/mpc85xx_jog.c @@ -97,8 +97,7 @@ static driver_t mpc85xx_jog_driver = { sizeof(struct mpc85xx_jog_softc) }; -static devclass_t mpc85xx_jog_devclass; -DRIVER_MODULE(mpc85xx_jog, cpu, mpc85xx_jog_driver, mpc85xx_jog_devclass, 0, 0); +DRIVER_MODULE(mpc85xx_jog, cpu, mpc85xx_jog_driver, 0, 0); struct mpc85xx_constraints { int threshold; /* Threshold frequency, in MHz, for setting CORE_SPD bit. */ diff --git a/sys/powerpc/cpufreq/pcr.c b/sys/powerpc/cpufreq/pcr.c index 4537b652d7f5..5480f2d33a89 100644 --- a/sys/powerpc/cpufreq/pcr.c +++ b/sys/powerpc/cpufreq/pcr.c @@ -74,8 +74,7 @@ static driver_t pcr_driver = { sizeof(struct pcr_softc) }; -static devclass_t pcr_devclass; -DRIVER_MODULE(pcr, cpu, pcr_driver, pcr_devclass, 0, 0); +DRIVER_MODULE(pcr, cpu, pcr_driver, 0, 0); /* * States diff --git a/sys/powerpc/cpufreq/pmcr.c b/sys/powerpc/cpufreq/pmcr.c index 9989dcc1506e..dad7d224f174 100644 --- a/sys/powerpc/cpufreq/pmcr.c +++ b/sys/powerpc/cpufreq/pmcr.c @@ -111,8 +111,7 @@ static driver_t pmcr_driver = { sizeof(struct pmcr_softc) }; -static devclass_t pmcr_devclass; -DRIVER_MODULE(pmcr, cpu, pmcr_driver, pmcr_devclass, 0, 0); +DRIVER_MODULE(pmcr, cpu, pmcr_driver, 0, 0); static void pmcr_identify(driver_t *driver, device_t parent) diff --git a/sys/powerpc/cpufreq/pmufreq.c b/sys/powerpc/cpufreq/pmufreq.c index 3c3d2ed3e811..e7e6fbd6a144 100644 --- a/sys/powerpc/cpufreq/pmufreq.c +++ b/sys/powerpc/cpufreq/pmufreq.c @@ -79,8 +79,7 @@ static driver_t pmufreq_driver = { sizeof(struct pmufreq_softc) }; -static devclass_t pmufreq_devclass; -DRIVER_MODULE(pmufreq, cpu, pmufreq_driver, pmufreq_devclass, 0, 0); +DRIVER_MODULE(pmufreq, cpu, pmufreq_driver, 0, 0); static void pmufreq_identify(driver_t *driver, device_t parent) diff --git a/sys/x86/cpufreq/est.c b/sys/x86/cpufreq/est.c index cdca2fdfec5f..8de07e6f978a 100644 --- a/sys/x86/cpufreq/est.c +++ b/sys/x86/cpufreq/est.c @@ -897,8 +897,7 @@ static driver_t est_driver = { sizeof(struct est_softc), }; -static devclass_t est_devclass; -DRIVER_MODULE(est, cpu, est_driver, est_devclass, 0, 0); +DRIVER_MODULE(est, cpu, est_driver, 0, 0); MODULE_DEPEND(est, hwpstate_intel, 1, 1, 1); static int diff --git a/sys/x86/cpufreq/hwpstate_amd.c b/sys/x86/cpufreq/hwpstate_amd.c index 3193cbd908cc..b62e23a548df 100644 --- a/sys/x86/cpufreq/hwpstate_amd.c +++ b/sys/x86/cpufreq/hwpstate_amd.c @@ -156,14 +156,13 @@ static device_method_t hwpstate_methods[] = { {0, 0} }; -static devclass_t hwpstate_devclass; static driver_t hwpstate_driver = { "hwpstate", hwpstate_methods, sizeof(struct hwpstate_softc), }; -DRIVER_MODULE(hwpstate, cpu, hwpstate_driver, hwpstate_devclass, 0, 0); +DRIVER_MODULE(hwpstate, cpu, hwpstate_driver, 0, 0); /* * Go to Px-state on all cpus, considering the limit register (if so diff --git a/sys/x86/cpufreq/hwpstate_intel.c b/sys/x86/cpufreq/hwpstate_intel.c index ae63cc6a6efe..50cbb6d96587 100644 --- a/sys/x86/cpufreq/hwpstate_intel.c +++ b/sys/x86/cpufreq/hwpstate_intel.c @@ -102,15 +102,13 @@ struct hwp_softc { uint8_t low; }; -static devclass_t hwpstate_intel_devclass; static driver_t hwpstate_intel_driver = { "hwpstate_intel", intel_hwpstate_methods, sizeof(struct hwp_softc), }; -DRIVER_MODULE(hwpstate_intel, cpu, hwpstate_intel_driver, - hwpstate_intel_devclass, NULL, NULL); +DRIVER_MODULE(hwpstate_intel, cpu, hwpstate_intel_driver, NULL, NULL); MODULE_VERSION(hwpstate_intel, 1); static bool hwpstate_pkg_ctrl_enable = true; diff --git a/sys/x86/cpufreq/p4tcc.c b/sys/x86/cpufreq/p4tcc.c index 4370da81cf06..e456f921b0de 100644 --- a/sys/x86/cpufreq/p4tcc.c +++ b/sys/x86/cpufreq/p4tcc.c @@ -106,8 +106,7 @@ static driver_t p4tcc_driver = { sizeof(struct p4tcc_softc), }; -static devclass_t p4tcc_devclass; -DRIVER_MODULE(p4tcc, cpu, p4tcc_driver, p4tcc_devclass, 0, 0); +DRIVER_MODULE(p4tcc, cpu, p4tcc_driver, 0, 0); static int p4tcc_features(driver_t *driver, u_int *features) diff --git a/sys/x86/cpufreq/powernow.c b/sys/x86/cpufreq/powernow.c index bc17c7e96999..28d59b225f8c 100644 --- a/sys/x86/cpufreq/powernow.c +++ b/sys/x86/cpufreq/powernow.c @@ -263,14 +263,13 @@ static device_method_t pn_methods[] = { {0, 0} }; -static devclass_t pn_devclass; static driver_t pn_driver = { "powernow", pn_methods, sizeof(struct pn_softc), }; -DRIVER_MODULE(powernow, cpu, pn_driver, pn_devclass, 0, 0); +DRIVER_MODULE(powernow, cpu, pn_driver, 0, 0); static int pn7_setfidvid(struct pn_softc *sc, int fid, int vid) diff --git a/sys/x86/cpufreq/smist.c b/sys/x86/cpufreq/smist.c index 129ec2d4884b..3810d9c9e781 100644 --- a/sys/x86/cpufreq/smist.c +++ b/sys/x86/cpufreq/smist.c @@ -106,8 +106,8 @@ static device_method_t smist_methods[] = { static driver_t smist_driver = { "smist", smist_methods, sizeof(struct smist_softc) }; -static devclass_t smist_devclass; -DRIVER_MODULE(smist, cpu, smist_driver, smist_devclass, 0, 0); + +DRIVER_MODULE(smist, cpu, smist_driver, 0, 0); struct piix4_pci_device { uint16_t vendor;