git: 64450e3a39cd - main - dc: Remove unused devclass arguments to DRIVER_MODULE.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 06 May 2022 22:43:12 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=64450e3a39cd9a12c30174d3be41406e8542ff2e

commit 64450e3a39cd9a12c30174d3be41406e8542ff2e
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-19 21:11:57 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-06 22:39:29 +0000

    dc: Remove unused devclass arguments to DRIVER_MODULE.
---
 sys/dev/dc/dcphy.c | 4 +---
 sys/dev/dc/if_dc.c | 5 +----
 sys/dev/dc/pnphy.c | 4 +---
 3 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/sys/dev/dc/dcphy.c b/sys/dev/dc/dcphy.c
index 8b28d462a5b3..6bdbf2f40e97 100644
--- a/sys/dev/dc/dcphy.c
+++ b/sys/dev/dc/dcphy.c
@@ -101,15 +101,13 @@ static device_method_t dcphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t dcphy_devclass;
-
 static driver_t dcphy_driver = {
 	"dcphy",
 	dcphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(dcphy, miibus, dcphy_driver, dcphy_devclass, 0, 0);
+DRIVER_MODULE(dcphy, miibus, dcphy_driver, 0, 0);
 
 static int	dcphy_service(struct mii_softc *, struct mii_data *, int);
 static void	dcphy_status(struct mii_softc *);
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c
index e9949a0e20fa..7bd404a69c20 100644
--- a/sys/dev/dc/if_dc.c
+++ b/sys/dev/dc/if_dc.c
@@ -350,10 +350,7 @@ static driver_t dc_driver = {
 	sizeof(struct dc_softc)
 };
 
-static devclass_t dc_devclass;
-
-DRIVER_MODULE_ORDERED(dc, pci, dc_driver, dc_devclass, NULL, NULL,
-    SI_ORDER_ANY);
+DRIVER_MODULE_ORDERED(dc, pci, dc_driver, NULL, NULL, SI_ORDER_ANY);
 MODULE_PNP_INFO("W32:vendor/device;U8:revision;D:#", pci, dc, dc_devs,
     nitems(dc_devs) - 1);
 DRIVER_MODULE(miibus, dc, miibus_driver, NULL, NULL);
diff --git a/sys/dev/dc/pnphy.c b/sys/dev/dc/pnphy.c
index f2da30cc6cf0..090b25adbbaa 100644
--- a/sys/dev/dc/pnphy.c
+++ b/sys/dev/dc/pnphy.c
@@ -80,15 +80,13 @@ static device_method_t pnphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t pnphy_devclass;
-
 static driver_t pnphy_driver = {
 	"pnphy",
 	pnphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(pnphy, miibus, pnphy_driver, pnphy_devclass, 0, 0);
+DRIVER_MODULE(pnphy, miibus, pnphy_driver, 0, 0);
 
 static int	pnphy_service(struct mii_softc *, struct mii_data *, int);
 static void	pnphy_status(struct mii_softc *);