git: 8933f7d60077 - main - Remove unused mdio_devclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 22:42:53 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8933f7d6007768df741d4ebba87e3d5c9e78ee9c commit 8933f7d6007768df741d4ebba87e3d5c9e78ee9c Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-19 19:20:33 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:39:28 +0000 Remove unused mdio_devclass. --- sys/dev/etherswitch/ar40xx/ar40xx_main.c | 2 +- sys/dev/etherswitch/arswitch/arswitch.c | 2 +- sys/dev/etherswitch/e6000sw/e6060sw.c | 2 +- sys/dev/etherswitch/infineon/adm6996fc.c | 2 +- sys/dev/etherswitch/ip17x/ip17x.c | 2 +- sys/dev/etherswitch/mtkswitch/mtkswitch.c | 2 +- sys/dev/etherswitch/rtl8366/rtl8366rb.c | 2 +- sys/dev/etherswitch/ukswitch/ukswitch.c | 2 +- sys/dev/mdio/mdio.c | 2 -- sys/dev/mdio/mdio.h | 1 - sys/dev/mge/if_mge.c | 2 +- sys/dev/neta/if_mvneta.c | 2 +- sys/dev/rt/if_rt.c | 2 +- 13 files changed, 11 insertions(+), 14 deletions(-) diff --git a/sys/dev/etherswitch/ar40xx/ar40xx_main.c b/sys/dev/etherswitch/ar40xx/ar40xx_main.c index 68a9f0207b55..9daf2e355469 100644 --- a/sys/dev/etherswitch/ar40xx/ar40xx_main.c +++ b/sys/dev/etherswitch/ar40xx/ar40xx_main.c @@ -960,7 +960,7 @@ static devclass_t ar40xx_devclass; DRIVER_MODULE(ar40xx, simplebus, ar40xx_driver, ar40xx_devclass, 0, 0); DRIVER_MODULE(ar40xx, ofwbus, ar40xx_driver, ar40xx_devclass, 0, 0); DRIVER_MODULE(miibus, ar40xx, miibus_driver, 0, 0); -DRIVER_MODULE(mdio, ar40xx, mdio_driver, mdio_devclass, 0, 0); +DRIVER_MODULE(mdio, ar40xx, mdio_driver, 0, 0); DRIVER_MODULE(etherswitch, ar40xx, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_DEPEND(ar40xx, mdio, 1, 1, 1); MODULE_DEPEND(ar40xx, miibus, 1, 1, 1); diff --git a/sys/dev/etherswitch/arswitch/arswitch.c b/sys/dev/etherswitch/arswitch/arswitch.c index 54d680da3e26..7202d22f1582 100644 --- a/sys/dev/etherswitch/arswitch/arswitch.c +++ b/sys/dev/etherswitch/arswitch/arswitch.c @@ -1348,7 +1348,7 @@ static devclass_t arswitch_devclass; DRIVER_MODULE(arswitch, mdio, arswitch_driver, arswitch_devclass, 0, 0); DRIVER_MODULE(miibus, arswitch, miibus_driver, 0, 0); -DRIVER_MODULE(mdio, arswitch, mdio_driver, mdio_devclass, 0, 0); +DRIVER_MODULE(mdio, arswitch, mdio_driver, 0, 0); DRIVER_MODULE(etherswitch, arswitch, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_VERSION(arswitch, 1); MODULE_DEPEND(arswitch, miibus, 1, 1, 1); /* XXX which versions? */ diff --git a/sys/dev/etherswitch/e6000sw/e6060sw.c b/sys/dev/etherswitch/e6000sw/e6060sw.c index 9ee8e3c5c601..66cfa7007318 100644 --- a/sys/dev/etherswitch/e6000sw/e6060sw.c +++ b/sys/dev/etherswitch/e6000sw/e6060sw.c @@ -1026,7 +1026,7 @@ static devclass_t e6060sw_devclass; DRIVER_MODULE(e6060sw, mdio, e6060sw_driver, e6060sw_devclass, 0, 0); DRIVER_MODULE(miibus, e6060sw, miibus_driver, 0, 0); -DRIVER_MODULE(mdio, e6060sw, mdio_driver, mdio_devclass, 0, 0); +DRIVER_MODULE(mdio, e6060sw, mdio_driver, 0, 0); DRIVER_MODULE(etherswitch, e6060sw, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_VERSION(e6060sw, 1); MODULE_DEPEND(e6060sw, miibus, 1, 1, 1); /* XXX which versions? */ diff --git a/sys/dev/etherswitch/infineon/adm6996fc.c b/sys/dev/etherswitch/infineon/adm6996fc.c index 9cc8662c3c05..86206ae4747e 100644 --- a/sys/dev/etherswitch/infineon/adm6996fc.c +++ b/sys/dev/etherswitch/infineon/adm6996fc.c @@ -856,7 +856,7 @@ static devclass_t adm6996fc_devclass; DRIVER_MODULE(adm6996fc, mdio, adm6996fc_driver, adm6996fc_devclass, 0, 0); DRIVER_MODULE(miibus, adm6996fc, miibus_driver, 0, 0); -DRIVER_MODULE(mdio, adm6996fc, mdio_driver, mdio_devclass, 0, 0); +DRIVER_MODULE(mdio, adm6996fc, mdio_driver, 0, 0); DRIVER_MODULE(etherswitch, adm6996fc, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_VERSION(adm6996fc, 1); diff --git a/sys/dev/etherswitch/ip17x/ip17x.c b/sys/dev/etherswitch/ip17x/ip17x.c index 5baeb08d752c..48098fdd61b3 100644 --- a/sys/dev/etherswitch/ip17x/ip17x.c +++ b/sys/dev/etherswitch/ip17x/ip17x.c @@ -656,7 +656,7 @@ MODULE_VERSION(ip17x, 1); #ifdef FDT MODULE_DEPEND(ip17x, mdio, 1, 1, 1); /* XXX which versions? */ #else -DRIVER_MODULE(mdio, ip17x, mdio_driver, mdio_devclass, 0, 0); +DRIVER_MODULE(mdio, ip17x, mdio_driver, 0, 0); MODULE_DEPEND(ip17x, miibus, 1, 1, 1); /* XXX which versions? */ MODULE_DEPEND(ip17x, etherswitch, 1, 1, 1); /* XXX which versions? */ #endif diff --git a/sys/dev/etherswitch/mtkswitch/mtkswitch.c b/sys/dev/etherswitch/mtkswitch/mtkswitch.c index d0633535dee6..53d426e32ec1 100644 --- a/sys/dev/etherswitch/mtkswitch/mtkswitch.c +++ b/sys/dev/etherswitch/mtkswitch/mtkswitch.c @@ -667,7 +667,7 @@ static devclass_t mtkswitch_devclass; DRIVER_MODULE(mtkswitch, simplebus, mtkswitch_driver, mtkswitch_devclass, 0, 0); DRIVER_MODULE(miibus, mtkswitch, miibus_driver, 0, 0); -DRIVER_MODULE(mdio, mtkswitch, mdio_driver, mdio_devclass, 0, 0); +DRIVER_MODULE(mdio, mtkswitch, mdio_driver, 0, 0); DRIVER_MODULE(etherswitch, mtkswitch, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_VERSION(mtkswitch, 1); diff --git a/sys/dev/etherswitch/rtl8366/rtl8366rb.c b/sys/dev/etherswitch/rtl8366/rtl8366rb.c index 6bebee26dcd1..0a50359bd9eb 100644 --- a/sys/dev/etherswitch/rtl8366/rtl8366rb.c +++ b/sys/dev/etherswitch/rtl8366/rtl8366rb.c @@ -961,7 +961,7 @@ static devclass_t rtl8366rb_devclass; DRIVER_MODULE(rtl8366rb, iicbus, rtl8366rb_driver, rtl8366rb_devclass, 0, 0); DRIVER_MODULE(miibus, rtl8366rb, miibus_driver, 0, 0); -DRIVER_MODULE(mdio, rtl8366rb, mdio_driver, mdio_devclass, 0, 0); +DRIVER_MODULE(mdio, rtl8366rb, mdio_driver, 0, 0); DRIVER_MODULE(etherswitch, rtl8366rb, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_VERSION(rtl8366rb, 1); MODULE_DEPEND(rtl8366rb, iicbus, 1, 1, 1); /* XXX which versions? */ diff --git a/sys/dev/etherswitch/ukswitch/ukswitch.c b/sys/dev/etherswitch/ukswitch/ukswitch.c index 1c8be6660e2e..b0d302b76e9b 100644 --- a/sys/dev/etherswitch/ukswitch/ukswitch.c +++ b/sys/dev/etherswitch/ukswitch/ukswitch.c @@ -577,7 +577,7 @@ static devclass_t ukswitch_devclass; DRIVER_MODULE(ukswitch, mdio, ukswitch_driver, ukswitch_devclass, 0, 0); DRIVER_MODULE(miibus, ukswitch, miibus_driver, 0, 0); -DRIVER_MODULE(mdio, ukswitch, mdio_driver, mdio_devclass, 0, 0); +DRIVER_MODULE(mdio, ukswitch, mdio_driver, 0, 0); DRIVER_MODULE(etherswitch, ukswitch, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_VERSION(ukswitch, 1); MODULE_DEPEND(ukswitch, miibus, 1, 1, 1); /* XXX which versions? */ diff --git a/sys/dev/mdio/mdio.c b/sys/dev/mdio/mdio.c index 5798c7490744..2dda893bd662 100644 --- a/sys/dev/mdio/mdio.c +++ b/sys/dev/mdio/mdio.c @@ -132,6 +132,4 @@ driver_t mdio_driver = { 0 }; -devclass_t mdio_devclass; - MODULE_VERSION(mdio, 1); diff --git a/sys/dev/mdio/mdio.h b/sys/dev/mdio/mdio.h index c38ff487dc81..7e1eec145fcc 100644 --- a/sys/dev/mdio/mdio.h +++ b/sys/dev/mdio/mdio.h @@ -30,7 +30,6 @@ #define __DEV_MDIO_MDIO_H__ extern driver_t mdio_driver; -extern devclass_t mdio_devclass; #define MDIO_DEVADDR_NONE -1 /**< Use clause 22 register access */ diff --git a/sys/dev/mge/if_mge.c b/sys/dev/mge/if_mge.c index 937b4d63121f..da951b734fd9 100644 --- a/sys/dev/mge/if_mge.c +++ b/sys/dev/mge/if_mge.c @@ -179,7 +179,7 @@ static int switch_attached = 0; DRIVER_MODULE(mge, simplebus, mge_driver, mge_devclass, 0, 0); DRIVER_MODULE(miibus, mge, miibus_driver, 0, 0); -DRIVER_MODULE(mdio, mge, mdio_driver, mdio_devclass, 0, 0); +DRIVER_MODULE(mdio, mge, mdio_driver, 0, 0); MODULE_DEPEND(mge, ether, 1, 1, 1); MODULE_DEPEND(mge, miibus, 1, 1, 1); MODULE_DEPEND(mge, mdio, 1, 1, 1); diff --git a/sys/dev/neta/if_mvneta.c b/sys/dev/neta/if_mvneta.c index bfdb2c545307..c2eb32947716 100644 --- a/sys/dev/neta/if_mvneta.c +++ b/sys/dev/neta/if_mvneta.c @@ -221,7 +221,7 @@ static device_method_t mvneta_methods[] = { DEFINE_CLASS_0(mvneta, mvneta_driver, mvneta_methods, sizeof(struct mvneta_softc)); DRIVER_MODULE(miibus, mvneta, miibus_driver, 0, 0); -DRIVER_MODULE(mdio, mvneta, mdio_driver, mdio_devclass, 0, 0); +DRIVER_MODULE(mdio, mvneta, mdio_driver, 0, 0); MODULE_DEPEND(mvneta, mdio, 1, 1, 1); MODULE_DEPEND(mvneta, ether, 1, 1, 1); MODULE_DEPEND(mvneta, miibus, 1, 1, 1); diff --git a/sys/dev/rt/if_rt.c b/sys/dev/rt/if_rt.c index 87f0bce6c425..67559d853586 100644 --- a/sys/dev/rt/if_rt.c +++ b/sys/dev/rt/if_rt.c @@ -2902,7 +2902,7 @@ static devclass_t rtmdio_devclass; DRIVER_MODULE(miiproxy, rt, miiproxy_driver, miiproxy_devclass, 0, 0); DRIVER_MODULE(rtmdio, simplebus, rtmdio_driver, rtmdio_devclass, 0, 0); -DRIVER_MODULE(mdio, rtmdio, mdio_driver, mdio_devclass, 0, 0); +DRIVER_MODULE(mdio, rtmdio, mdio_driver, 0, 0); static int rtmdio_probe(device_t dev)