git: beccd04c88c5 - main - Remove unused miiproxy_devclass.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 09 May 2022 21:47:34 UTC
The branch main has been updated by jhb:

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

commit beccd04c88c5102f3cfcf2c31d83591e2d550388
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-09 21:26:43 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-09 21:26:43 +0000

    Remove unused miiproxy_devclass.
---
 sys/dev/etherswitch/miiproxy.c | 1 -
 sys/dev/etherswitch/miiproxy.h | 1 -
 sys/dev/rt/if_rt.c             | 2 +-
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/sys/dev/etherswitch/miiproxy.c b/sys/dev/etherswitch/miiproxy.c
index 19a34580cbca..ccebcde12266 100644
--- a/sys/dev/etherswitch/miiproxy.c
+++ b/sys/dev/etherswitch/miiproxy.c
@@ -432,7 +432,6 @@ DEFINE_CLASS_0(miiproxy, miiproxy_driver, miiproxy_methods,
 DEFINE_CLASS_0(mdioproxy, mdioproxy_driver, mdioproxy_methods,
     sizeof(struct mdioproxy_softc));
 
-devclass_t miiproxy_devclass;
 static devclass_t mdioproxy_devclass;
 
 DRIVER_MODULE(mdioproxy, mdio, mdioproxy_driver, mdioproxy_devclass, 0, 0);
diff --git a/sys/dev/etherswitch/miiproxy.h b/sys/dev/etherswitch/miiproxy.h
index fc30af10ada2..d98d5495a2a8 100644
--- a/sys/dev/etherswitch/miiproxy.h
+++ b/sys/dev/etherswitch/miiproxy.h
@@ -31,7 +31,6 @@
 #ifndef	__DEV_ETHERSWITCH_MIIPROXY_H__
 #define	__DEV_ETHERSWITCH_MIIPROXY_H__
 
-extern devclass_t miiproxy_devclass;
 extern driver_t miiproxy_driver;
 
 device_t mii_attach_proxy(device_t dev);
diff --git a/sys/dev/rt/if_rt.c b/sys/dev/rt/if_rt.c
index 67559d853586..c22618b7a5e1 100644
--- a/sys/dev/rt/if_rt.c
+++ b/sys/dev/rt/if_rt.c
@@ -2900,7 +2900,7 @@ DEFINE_CLASS_0(rtmdio, rtmdio_driver, rtmdio_methods,
     sizeof(struct rt_softc));
 static devclass_t rtmdio_devclass;
 
-DRIVER_MODULE(miiproxy, rt, miiproxy_driver, miiproxy_devclass, 0, 0);
+DRIVER_MODULE(miiproxy, rt, miiproxy_driver, 0, 0);
 DRIVER_MODULE(rtmdio, simplebus, rtmdio_driver, rtmdio_devclass, 0, 0);
 DRIVER_MODULE(mdio, rtmdio, mdio_driver, 0, 0);