git: f438c2ff057f - main - mii: Remove unused devclass arguments to DRIVER_MODULE.

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

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

commit f438c2ff057f616f7e0eec1037697c00a63bc5b5
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-20 16:55:06 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-06 22:39:31 +0000

    mii: Remove unused devclass arguments to DRIVER_MODULE.
---
 sys/dev/mii/acphy.c      | 4 +---
 sys/dev/mii/amphy.c      | 4 +---
 sys/dev/mii/atphy.c      | 3 +--
 sys/dev/mii/axphy.c      | 4 +---
 sys/dev/mii/bmtphy.c     | 4 +---
 sys/dev/mii/brgphy.c     | 4 +---
 sys/dev/mii/ciphy.c      | 4 +---
 sys/dev/mii/dp83822phy.c | 4 +---
 sys/dev/mii/dp83867phy.c | 4 +---
 sys/dev/mii/e1000phy.c   | 3 +--
 sys/dev/mii/gentbi.c     | 4 +---
 sys/dev/mii/icsphy.c     | 4 +---
 sys/dev/mii/ip1000phy.c  | 3 +--
 sys/dev/mii/jmphy.c      | 3 +--
 sys/dev/mii/lxtphy.c     | 4 +---
 sys/dev/mii/micphy.c     | 4 +---
 sys/dev/mii/nsgphy.c     | 4 +---
 sys/dev/mii/nsphy.c      | 4 +---
 sys/dev/mii/nsphyter.c   | 4 +---
 sys/dev/mii/pnaphy.c     | 4 +---
 sys/dev/mii/qsphy.c      | 4 +---
 sys/dev/mii/rdcphy.c     | 4 +---
 sys/dev/mii/rgephy.c     | 4 +---
 sys/dev/mii/rlphy.c      | 4 +---
 sys/dev/mii/rlswitch.c   | 4 +---
 sys/dev/mii/smcphy.c     | 4 +---
 sys/dev/mii/smscphy.c    | 4 +---
 sys/dev/mii/tdkphy.c     | 4 +---
 sys/dev/mii/truephy.c    | 4 +---
 sys/dev/mii/ukphy.c      | 4 +---
 sys/dev/mii/vscphy.c     | 4 +---
 sys/dev/mii/xmphy.c      | 4 +---
 32 files changed, 32 insertions(+), 92 deletions(-)

diff --git a/sys/dev/mii/acphy.c b/sys/dev/mii/acphy.c
index 52caa37d3b61..65999b4edb6d 100644
--- a/sys/dev/mii/acphy.c
+++ b/sys/dev/mii/acphy.c
@@ -92,15 +92,13 @@ static device_method_t acphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t acphy_devclass;
-
 static driver_t acphy_driver = {
 	"acphy",
 	acphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(acphy, miibus, acphy_driver, acphy_devclass, 0, 0);
+DRIVER_MODULE(acphy, miibus, acphy_driver, 0, 0);
 
 static int	acphy_service(struct mii_softc *, struct mii_data *, int);
 static void	acphy_reset(struct mii_softc *);
diff --git a/sys/dev/mii/amphy.c b/sys/dev/mii/amphy.c
index bd6b75e2b2b0..89f5aca3a4de 100644
--- a/sys/dev/mii/amphy.c
+++ b/sys/dev/mii/amphy.c
@@ -71,15 +71,13 @@ static device_method_t amphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t amphy_devclass;
-
 static driver_t amphy_driver = {
 	"amphy",
 	amphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(amphy, miibus, amphy_driver, amphy_devclass, 0, 0);
+DRIVER_MODULE(amphy, miibus, amphy_driver, 0, 0);
 
 static int	amphy_service(struct mii_softc *, struct mii_data *, int);
 static void	amphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/atphy.c b/sys/dev/mii/atphy.c
index fa729b6a75ca..d5d1ae3d3f9f 100644
--- a/sys/dev/mii/atphy.c
+++ b/sys/dev/mii/atphy.c
@@ -64,14 +64,13 @@ static device_method_t atphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t atphy_devclass;
 static driver_t atphy_driver = {
 	"atphy",
 	atphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(atphy, miibus, atphy_driver, atphy_devclass, 0, 0);
+DRIVER_MODULE(atphy, miibus, atphy_driver, 0, 0);
 
 static int	atphy_service(struct mii_softc *, struct mii_data *, int);
 static void	atphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/axphy.c b/sys/dev/mii/axphy.c
index 2e32486f1eea..7c32939589e9 100644
--- a/sys/dev/mii/axphy.c
+++ b/sys/dev/mii/axphy.c
@@ -60,15 +60,13 @@ static device_method_t axphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t axphy_devclass;
-
 static driver_t axphy_driver = {
 	"axphy",
 	axphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(axphy, miibus, axphy_driver, axphy_devclass, 0, 0);
+DRIVER_MODULE(axphy, miibus, axphy_driver, 0, 0);
 
 static int	axphy_service(struct mii_softc *, struct mii_data *, int);
 static void	axphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/bmtphy.c b/sys/dev/mii/bmtphy.c
index 5fe34a616434..9822df4bf30f 100644
--- a/sys/dev/mii/bmtphy.c
+++ b/sys/dev/mii/bmtphy.c
@@ -96,15 +96,13 @@ static device_method_t bmtphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t	bmtphy_devclass;
-
 static driver_t	bmtphy_driver = {
 	"bmtphy",
 	bmtphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(bmtphy, miibus, bmtphy_driver, bmtphy_devclass, 0, 0);
+DRIVER_MODULE(bmtphy, miibus, bmtphy_driver, 0, 0);
 
 static int	bmtphy_service(struct mii_softc *, struct mii_data *, int);
 static void	bmtphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c
index 58bf18b4e984..74f1dbbfe5b7 100644
--- a/sys/dev/mii/brgphy.c
+++ b/sys/dev/mii/brgphy.c
@@ -89,15 +89,13 @@ static device_method_t brgphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t brgphy_devclass;
-
 static driver_t brgphy_driver = {
 	"brgphy",
 	brgphy_methods,
 	sizeof(struct brgphy_softc)
 };
 
-DRIVER_MODULE(brgphy, miibus, brgphy_driver, brgphy_devclass, 0, 0);
+DRIVER_MODULE(brgphy, miibus, brgphy_driver, 0, 0);
 
 static int	brgphy_service(struct mii_softc *, struct mii_data *, int);
 static void	brgphy_setmedia(struct mii_softc *, int);
diff --git a/sys/dev/mii/ciphy.c b/sys/dev/mii/ciphy.c
index b91b19f8c89a..62f492a36e19 100644
--- a/sys/dev/mii/ciphy.c
+++ b/sys/dev/mii/ciphy.c
@@ -72,15 +72,13 @@ static device_method_t ciphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t ciphy_devclass;
-
 static driver_t ciphy_driver = {
 	"ciphy",
 	ciphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(ciphy, miibus, ciphy_driver, ciphy_devclass, 0, 0);
+DRIVER_MODULE(ciphy, miibus, ciphy_driver, 0, 0);
 
 static int	ciphy_service(struct mii_softc *, struct mii_data *, int);
 static void	ciphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/dp83822phy.c b/sys/dev/mii/dp83822phy.c
index 4980f06df1dd..6def0ee3f3d5 100644
--- a/sys/dev/mii/dp83822phy.c
+++ b/sys/dev/mii/dp83822phy.c
@@ -209,12 +209,10 @@ static device_method_t dp_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t dp_devclass;
-
 static driver_t dp_driver = {
 	"dp83822phy",
 	dp_methods,
 	sizeof(struct dp83822_softc)
 };
 
-DRIVER_MODULE(dp83822phy, miibus, dp_driver, dp_devclass, 0, 0);
+DRIVER_MODULE(dp83822phy, miibus, dp_driver, 0, 0);
diff --git a/sys/dev/mii/dp83867phy.c b/sys/dev/mii/dp83867phy.c
index 297ac0f83ae1..a2fdcd392d92 100644
--- a/sys/dev/mii/dp83867phy.c
+++ b/sys/dev/mii/dp83867phy.c
@@ -285,12 +285,10 @@ static device_method_t dp_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t dp_devclass;
-
 static driver_t dp_driver = {
 	"dp83867phy",
 	dp_methods,
 	sizeof(struct dp83867_softc)
 };
 
-DRIVER_MODULE(dp83867phy, miibus, dp_driver, dp_devclass, 0, 0);
+DRIVER_MODULE(dp83867phy, miibus, dp_driver, 0, 0);
diff --git a/sys/dev/mii/e1000phy.c b/sys/dev/mii/e1000phy.c
index f7d5af271b91..f803fcfb1324 100644
--- a/sys/dev/mii/e1000phy.c
+++ b/sys/dev/mii/e1000phy.c
@@ -76,14 +76,13 @@ static device_method_t e1000phy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t e1000phy_devclass;
 static driver_t e1000phy_driver = {
 	"e1000phy",
 	e1000phy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(e1000phy, miibus, e1000phy_driver, e1000phy_devclass, 0, 0);
+DRIVER_MODULE(e1000phy, miibus, e1000phy_driver, 0, 0);
 
 static int	e1000phy_service(struct mii_softc *, struct mii_data *, int);
 static void	e1000phy_status(struct mii_softc *);
diff --git a/sys/dev/mii/gentbi.c b/sys/dev/mii/gentbi.c
index 69190fefa94b..fa4fa773d99e 100644
--- a/sys/dev/mii/gentbi.c
+++ b/sys/dev/mii/gentbi.c
@@ -100,15 +100,13 @@ static device_method_t gentbi_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t gentbi_devclass;
-
 static driver_t gentbi_driver = {
 	"gentbi",
 	gentbi_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(gentbi, miibus, gentbi_driver, gentbi_devclass, 0, 0);
+DRIVER_MODULE(gentbi, miibus, gentbi_driver, 0, 0);
 
 static int	gentbi_service(struct mii_softc *, struct mii_data *, int);
 static void	gentbi_status(struct mii_softc *);
diff --git a/sys/dev/mii/icsphy.c b/sys/dev/mii/icsphy.c
index 91745858b2ea..58ceda21d828 100644
--- a/sys/dev/mii/icsphy.c
+++ b/sys/dev/mii/icsphy.c
@@ -94,15 +94,13 @@ static device_method_t icsphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t icsphy_devclass;
-
 static driver_t icsphy_driver = {
 	"icsphy",
 	icsphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(icsphy, miibus, icsphy_driver, icsphy_devclass, 0, 0);
+DRIVER_MODULE(icsphy, miibus, icsphy_driver, 0, 0);
 
 static int	icsphy_service(struct mii_softc *, struct mii_data *, int);
 static void	icsphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/ip1000phy.c b/sys/dev/mii/ip1000phy.c
index ad0c4805a552..22fe5940cdfe 100644
--- a/sys/dev/mii/ip1000phy.c
+++ b/sys/dev/mii/ip1000phy.c
@@ -70,14 +70,13 @@ static device_method_t ip1000phy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t ip1000phy_devclass;
 static driver_t ip1000phy_driver = {
 	"ip1000phy",
 	ip1000phy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(ip1000phy, miibus, ip1000phy_driver, ip1000phy_devclass, 0, 0);
+DRIVER_MODULE(ip1000phy, miibus, ip1000phy_driver, 0, 0);
 
 static int	ip1000phy_service(struct mii_softc *, struct mii_data *, int);
 static void	ip1000phy_status(struct mii_softc *);
diff --git a/sys/dev/mii/jmphy.c b/sys/dev/mii/jmphy.c
index ff6842562e0c..e39bed79ddb2 100644
--- a/sys/dev/mii/jmphy.c
+++ b/sys/dev/mii/jmphy.c
@@ -68,14 +68,13 @@ static device_method_t jmphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t jmphy_devclass;
 static driver_t jmphy_driver = {
 	"jmphy",
 	jmphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(jmphy, miibus, jmphy_driver, jmphy_devclass, 0, 0);
+DRIVER_MODULE(jmphy, miibus, jmphy_driver, 0, 0);
 
 static int	jmphy_service(struct mii_softc *, struct mii_data *, int);
 static void	jmphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/lxtphy.c b/sys/dev/mii/lxtphy.c
index 31900cc5a34b..acb50c332edd 100644
--- a/sys/dev/mii/lxtphy.c
+++ b/sys/dev/mii/lxtphy.c
@@ -96,15 +96,13 @@ static device_method_t lxtphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t lxtphy_devclass;
-
 static driver_t lxtphy_driver = {
 	"lxtphy",
 	lxtphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(lxtphy, miibus, lxtphy_driver, lxtphy_devclass, 0, 0);
+DRIVER_MODULE(lxtphy, miibus, lxtphy_driver, 0, 0);
 
 static int	lxtphy_service(struct mii_softc *, struct mii_data *, int);
 static void	lxtphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/micphy.c b/sys/dev/mii/micphy.c
index 9ebb72f5b413..d8148ae4e6a4 100644
--- a/sys/dev/mii/micphy.c
+++ b/sys/dev/mii/micphy.c
@@ -95,15 +95,13 @@ static device_method_t micphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t micphy_devclass;
-
 static driver_t micphy_driver = {
 	"micphy",
 	micphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(micphy, miibus, micphy_driver, micphy_devclass, 0, 0);
+DRIVER_MODULE(micphy, miibus, micphy_driver, 0, 0);
 
 static const struct mii_phydesc micphys[] = {
 	MII_PHY_DESC(MICREL, KSZ8081),
diff --git a/sys/dev/mii/nsgphy.c b/sys/dev/mii/nsgphy.c
index 1e5f7a8557d1..90efd1cdc4be 100644
--- a/sys/dev/mii/nsgphy.c
+++ b/sys/dev/mii/nsgphy.c
@@ -88,15 +88,13 @@ static device_method_t nsgphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t nsgphy_devclass;
-
 static driver_t nsgphy_driver = {
 	"nsgphy",
 	nsgphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(nsgphy, miibus, nsgphy_driver, nsgphy_devclass, 0, 0);
+DRIVER_MODULE(nsgphy, miibus, nsgphy_driver, 0, 0);
 
 static int	nsgphy_service(struct mii_softc *, struct mii_data *,int);
 static void	nsgphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/nsphy.c b/sys/dev/mii/nsphy.c
index 8feab4f023f5..92b0013a7c9e 100644
--- a/sys/dev/mii/nsphy.c
+++ b/sys/dev/mii/nsphy.c
@@ -96,15 +96,13 @@ static device_method_t nsphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t nsphy_devclass;
-
 static driver_t nsphy_driver = {
 	"nsphy",
 	nsphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(nsphy, miibus, nsphy_driver, nsphy_devclass, 0, 0);
+DRIVER_MODULE(nsphy, miibus, nsphy_driver, 0, 0);
 
 static int	nsphy_service(struct mii_softc *, struct mii_data *, int);
 static void	nsphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/nsphyter.c b/sys/dev/mii/nsphyter.c
index 5bb5ea81e3be..b8489c23a285 100644
--- a/sys/dev/mii/nsphyter.c
+++ b/sys/dev/mii/nsphyter.c
@@ -99,15 +99,13 @@ static device_method_t nsphyter_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t nsphyter_devclass;
-
 static driver_t nsphyter_driver = {
 	"nsphyter",
 	nsphyter_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(nsphyter, miibus, nsphyter_driver, nsphyter_devclass, 0, 0);
+DRIVER_MODULE(nsphyter, miibus, nsphyter_driver, 0, 0);
 
 static int	nsphyter_service(struct mii_softc *, struct mii_data *, int);
 static void	nsphyter_status(struct mii_softc *);
diff --git a/sys/dev/mii/pnaphy.c b/sys/dev/mii/pnaphy.c
index c03c57844985..1337a819c8a9 100644
--- a/sys/dev/mii/pnaphy.c
+++ b/sys/dev/mii/pnaphy.c
@@ -74,15 +74,13 @@ static device_method_t pnaphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t pnaphy_devclass;
-
 static driver_t pnaphy_driver = {
 	"pnaphy",
 	pnaphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(pnaphy, miibus, pnaphy_driver, pnaphy_devclass, 0, 0);
+DRIVER_MODULE(pnaphy, miibus, pnaphy_driver, 0, 0);
 
 static int	pnaphy_service(struct mii_softc *, struct mii_data *,int);
 
diff --git a/sys/dev/mii/qsphy.c b/sys/dev/mii/qsphy.c
index fd7ef15cbddc..910f0e38ee16 100644
--- a/sys/dev/mii/qsphy.c
+++ b/sys/dev/mii/qsphy.c
@@ -96,15 +96,13 @@ static device_method_t qsphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t qsphy_devclass;
-
 static driver_t qsphy_driver = {
 	"qsphy",
 	qsphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(qsphy, miibus, qsphy_driver, qsphy_devclass, 0, 0);
+DRIVER_MODULE(qsphy, miibus, qsphy_driver, 0, 0);
 
 static int	qsphy_service(struct mii_softc *, struct mii_data *, int);
 static void	qsphy_reset(struct mii_softc *);
diff --git a/sys/dev/mii/rdcphy.c b/sys/dev/mii/rdcphy.c
index 1a7be03efacc..dd98c5b672c9 100644
--- a/sys/dev/mii/rdcphy.c
+++ b/sys/dev/mii/rdcphy.c
@@ -70,15 +70,13 @@ static device_method_t rdcphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t rdcphy_devclass;
-
 static driver_t rdcphy_driver = {
 	"rdcphy",
 	rdcphy_methods,
 	sizeof(struct rdcphy_softc)
 };
 
-DRIVER_MODULE(rdcphy, miibus, rdcphy_driver, rdcphy_devclass, 0, 0);
+DRIVER_MODULE(rdcphy, miibus, rdcphy_driver, 0, 0);
 
 static int	rdcphy_service(struct mii_softc *, struct mii_data *, int);
 static void	rdcphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/rgephy.c b/sys/dev/mii/rgephy.c
index 362aa200cba0..02ede33caa03 100644
--- a/sys/dev/mii/rgephy.c
+++ b/sys/dev/mii/rgephy.c
@@ -75,15 +75,13 @@ static device_method_t rgephy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t rgephy_devclass;
-
 static driver_t rgephy_driver = {
 	"rgephy",
 	rgephy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(rgephy, miibus, rgephy_driver, rgephy_devclass, 0, 0);
+DRIVER_MODULE(rgephy, miibus, rgephy_driver, 0, 0);
 
 static int	rgephy_service(struct mii_softc *, struct mii_data *, int);
 static void	rgephy_status(struct mii_softc *);
diff --git a/sys/dev/mii/rlphy.c b/sys/dev/mii/rlphy.c
index 6433faf23142..641d6ad51c20 100644
--- a/sys/dev/mii/rlphy.c
+++ b/sys/dev/mii/rlphy.c
@@ -72,15 +72,13 @@ static device_method_t rlphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t rlphy_devclass;
-
 static driver_t rlphy_driver = {
 	"rlphy",
 	rlphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(rlphy, miibus, rlphy_driver, rlphy_devclass, 0, 0);
+DRIVER_MODULE(rlphy, miibus, rlphy_driver, 0, 0);
 
 static int	rlphy_service(struct mii_softc *, struct mii_data *, int);
 static void	rlphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/rlswitch.c b/sys/dev/mii/rlswitch.c
index 04c361eb1523..1afdf876d4c4 100644
--- a/sys/dev/mii/rlswitch.c
+++ b/sys/dev/mii/rlswitch.c
@@ -76,15 +76,13 @@ static device_method_t rlswitch_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t rlswitch_devclass;
-
 static driver_t rlswitch_driver = {
 	"rlswitch",
 	rlswitch_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(rlswitch, miibus, rlswitch_driver, rlswitch_devclass, 0, 0);
+DRIVER_MODULE(rlswitch, miibus, rlswitch_driver, 0, 0);
 
 static int	rlswitch_service(struct mii_softc *, struct mii_data *, int);
 static void	rlswitch_status(struct mii_softc *);
diff --git a/sys/dev/mii/smcphy.c b/sys/dev/mii/smcphy.c
index 57b5eef0d968..a8edbe7412c4 100644
--- a/sys/dev/mii/smcphy.c
+++ b/sys/dev/mii/smcphy.c
@@ -69,15 +69,13 @@ static device_method_t smcphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t smcphy_devclass;
-
 static driver_t smcphy_driver = {
 	"smcphy",
 	smcphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(smcphy, miibus, smcphy_driver, smcphy_devclass, 0, 0);
+DRIVER_MODULE(smcphy, miibus, smcphy_driver, 0, 0);
 
 static const struct mii_phydesc smcphys[] = {
 	MII_PHY_DESC(SEEQ, 80220),
diff --git a/sys/dev/mii/smscphy.c b/sys/dev/mii/smscphy.c
index 25464b781441..63c894e3e497 100644
--- a/sys/dev/mii/smscphy.c
+++ b/sys/dev/mii/smscphy.c
@@ -67,15 +67,13 @@ static device_method_t smscphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t smscphy_devclass;
-
 static driver_t smscphy_driver = {
 	"smscphy",
 	smscphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(smscphy, miibus, smscphy_driver, smscphy_devclass, 0, 0);
+DRIVER_MODULE(smscphy, miibus, smscphy_driver, 0, 0);
 
 static const struct mii_phydesc smscphys[] = {
 	MII_PHY_DESC(SMC, LAN8710A),
diff --git a/sys/dev/mii/tdkphy.c b/sys/dev/mii/tdkphy.c
index 7812a518f4bb..3ddcff4d12e7 100644
--- a/sys/dev/mii/tdkphy.c
+++ b/sys/dev/mii/tdkphy.c
@@ -76,15 +76,13 @@ static device_method_t tdkphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t tdkphy_devclass;
-
 static driver_t tdkphy_driver = {
 	"tdkphy",
 	tdkphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(tdkphy, miibus, tdkphy_driver, tdkphy_devclass, 0, 0);
+DRIVER_MODULE(tdkphy, miibus, tdkphy_driver, 0, 0);
 
 static int tdkphy_service(struct mii_softc *, struct mii_data *, int);
 static void tdkphy_status(struct mii_softc *);
diff --git a/sys/dev/mii/truephy.c b/sys/dev/mii/truephy.c
index 960a86baeeed..db7f17b80bbe 100644
--- a/sys/dev/mii/truephy.c
+++ b/sys/dev/mii/truephy.c
@@ -84,15 +84,13 @@ static const struct mii_phydesc truephys[] = {
 	MII_PHY_END
 };
 
-static devclass_t truephy_devclass;
-
 static driver_t truephy_driver = {
 	"truephy",
 	truephy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(truephy, miibus, truephy_driver, truephy_devclass, 0, 0);
+DRIVER_MODULE(truephy, miibus, truephy_driver, 0, 0);
 
 static const struct mii_phy_funcs truephy_funcs = {
 	truephy_service,
diff --git a/sys/dev/mii/ukphy.c b/sys/dev/mii/ukphy.c
index 22b8035f3091..9a5233ff3f8e 100644
--- a/sys/dev/mii/ukphy.c
+++ b/sys/dev/mii/ukphy.c
@@ -91,15 +91,13 @@ static device_method_t ukphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t ukphy_devclass;
-
 static driver_t ukphy_driver = {
 	"ukphy",
 	ukphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(ukphy, miibus, ukphy_driver, ukphy_devclass, 0, 0);
+DRIVER_MODULE(ukphy, miibus, ukphy_driver, 0, 0);
 
 static int	ukphy_service(struct mii_softc *, struct mii_data *, int);
 
diff --git a/sys/dev/mii/vscphy.c b/sys/dev/mii/vscphy.c
index b91cb408dae7..1e79bba9e63c 100644
--- a/sys/dev/mii/vscphy.c
+++ b/sys/dev/mii/vscphy.c
@@ -335,12 +335,10 @@ static device_method_t vscphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t vscphy_devclass;
-
 static driver_t vscphy_driver = {
 	"vscphy",
 	vscphy_methods,
 	sizeof(struct vscphy_softc)
 };
 
-DRIVER_MODULE(vscphy, miibus, vscphy_driver, vscphy_devclass, 0, 0);
+DRIVER_MODULE(vscphy, miibus, vscphy_driver, 0, 0);
diff --git a/sys/dev/mii/xmphy.c b/sys/dev/mii/xmphy.c
index c0c67e4d19e5..77043d0392c4 100644
--- a/sys/dev/mii/xmphy.c
+++ b/sys/dev/mii/xmphy.c
@@ -71,15 +71,13 @@ static device_method_t xmphy_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t xmphy_devclass;
-
 static driver_t xmphy_driver = {
 	"xmphy",
 	xmphy_methods,
 	sizeof(struct mii_softc)
 };
 
-DRIVER_MODULE(xmphy, miibus, xmphy_driver, xmphy_devclass, 0, 0);
+DRIVER_MODULE(xmphy, miibus, xmphy_driver, 0, 0);
 
 static int	xmphy_service(struct mii_softc *, struct mii_data *, int);
 static void	xmphy_status(struct mii_softc *);