git: 3e38757d4c52 - main - Remove unused miibus_devclass and miibus_fdt_devclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 22:42:52 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3e38757d4c52f7c2b33e4ab667ebc55e334a6ca0 commit 3e38757d4c52f7c2b33e4ab667ebc55e334a6ca0 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-19 19:18:43 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:39:28 +0000 Remove unused miibus_devclass and miibus_fdt_devclass. --- sys/arm/allwinner/if_awg.c | 2 +- sys/arm/allwinner/if_emac.c | 2 +- sys/arm/ti/cpsw/if_cpsw.c | 2 +- sys/arm64/broadcom/genet/if_genet.c | 2 +- sys/dev/ae/if_ae.c | 2 +- sys/dev/age/if_age.c | 2 +- sys/dev/al_eth/al_eth.c | 2 +- sys/dev/alc/if_alc.c | 2 +- sys/dev/ale/if_ale.c | 2 +- sys/dev/altera/atse/if_atse_fdt.c | 2 +- sys/dev/altera/atse/if_atse_nexus.c | 2 +- sys/dev/axgbe/if_axgbe_pci.c | 2 +- sys/dev/bce/if_bce.c | 2 +- sys/dev/bfe/if_bfe.c | 2 +- sys/dev/bge/if_bge.c | 2 +- sys/dev/cadence/if_cgem.c | 2 +- sys/dev/cas/if_cas.c | 2 +- sys/dev/dc/if_dc.c | 2 +- sys/dev/dme/if_dme.c | 2 +- sys/dev/dpaa/fman_mdio.c | 2 +- sys/dev/dpaa/if_dtsec_fdt.c | 2 +- sys/dev/dwc/if_dwc.c | 2 +- sys/dev/enetc/if_enetc.c | 2 +- sys/dev/et/if_et.c | 2 +- sys/dev/etherswitch/ar40xx/ar40xx_main.c | 2 +- sys/dev/etherswitch/arswitch/arswitch.c | 2 +- sys/dev/etherswitch/e6000sw/e6000sw.c | 2 +- sys/dev/etherswitch/e6000sw/e6060sw.c | 2 +- sys/dev/etherswitch/felix/felix.c | 3 +-- sys/dev/etherswitch/infineon/adm6996fc.c | 2 +- sys/dev/etherswitch/ip17x/ip17x.c | 2 +- sys/dev/etherswitch/micrel/ksz8995ma.c | 2 +- sys/dev/etherswitch/miiproxy.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/ffec/if_ffec.c | 2 +- sys/dev/fxp/if_fxp.c | 2 +- sys/dev/gem/if_gem.c | 2 +- sys/dev/gpio/gpiomdio.c | 2 +- sys/dev/jme/if_jme.c | 2 +- sys/dev/lge/if_lge.c | 2 +- sys/dev/mgb/if_mgb.c | 4 ++-- sys/dev/mge/if_mge.c | 2 +- sys/dev/mii/mii.c | 1 - sys/dev/mii/mii_fdt.c | 1 - sys/dev/mii/miivar.h | 2 -- sys/dev/msk/if_msk.c | 2 +- sys/dev/neta/if_mvneta.c | 2 +- sys/dev/nfe/if_nfe.c | 2 +- sys/dev/nge/if_nge.c | 2 +- sys/dev/re/if_re.c | 2 +- sys/dev/rl/if_rl.c | 2 +- sys/dev/sge/if_sge.c | 2 +- sys/dev/sis/if_sis.c | 2 +- sys/dev/sk/if_sk.c | 2 +- sys/dev/smc/if_smc.c | 2 +- sys/dev/ste/if_ste.c | 2 +- sys/dev/stge/if_stge.c | 2 +- sys/dev/tsec/if_tsec.c | 2 +- sys/dev/usb/net/if_aue.c | 2 +- sys/dev/usb/net/if_axe.c | 2 +- sys/dev/usb/net/if_axge.c | 2 +- sys/dev/usb/net/if_mos.c | 2 +- sys/dev/usb/net/if_muge.c | 2 +- sys/dev/usb/net/if_rue.c | 2 +- sys/dev/usb/net/if_smsc.c | 2 +- sys/dev/usb/net/if_udav.c | 2 +- sys/dev/usb/net/if_ure.c | 2 +- sys/dev/vge/if_vge.c | 2 +- sys/dev/vnic/thunder_mdio.c | 2 +- sys/dev/vr/if_vr.c | 2 +- sys/dev/vte/if_vte.c | 2 +- sys/dev/xilinx/if_xae.c | 2 +- sys/dev/xl/if_xl.c | 2 +- 75 files changed, 73 insertions(+), 78 deletions(-) diff --git a/sys/arm/allwinner/if_awg.c b/sys/arm/allwinner/if_awg.c index f130cedaa1de..029759fe42ba 100644 --- a/sys/arm/allwinner/if_awg.c +++ b/sys/arm/allwinner/if_awg.c @@ -2018,7 +2018,7 @@ static driver_t awg_driver = { static devclass_t awg_devclass; DRIVER_MODULE(awg, simplebus, awg_driver, awg_devclass, 0, 0); -DRIVER_MODULE(miibus, awg, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, awg, miibus_driver, 0, 0); MODULE_DEPEND(awg, ether, 1, 1, 1); MODULE_DEPEND(awg, miibus, 1, 1, 1); MODULE_DEPEND(awg, aw_sid, 1, 1, 1); diff --git a/sys/arm/allwinner/if_emac.c b/sys/arm/allwinner/if_emac.c index ded5e6fc4bbd..8b49580516b0 100644 --- a/sys/arm/allwinner/if_emac.c +++ b/sys/arm/allwinner/if_emac.c @@ -1171,7 +1171,7 @@ static driver_t emac_driver = { static devclass_t emac_devclass; DRIVER_MODULE(emac, simplebus, emac_driver, emac_devclass, 0, 0); -DRIVER_MODULE(miibus, emac, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, emac, miibus_driver, 0, 0); MODULE_DEPEND(emac, miibus, 1, 1, 1); MODULE_DEPEND(emac, ether, 1, 1, 1); diff --git a/sys/arm/ti/cpsw/if_cpsw.c b/sys/arm/ti/cpsw/if_cpsw.c index 9403bdef4012..a10538457974 100644 --- a/sys/arm/ti/cpsw/if_cpsw.c +++ b/sys/arm/ti/cpsw/if_cpsw.c @@ -240,7 +240,7 @@ MODULE_DEPEND(cpswss, etherswitch, 1, 1, 1); #endif DRIVER_MODULE(cpsw, cpswss, cpswp_driver, cpswp_devclass, 0, 0); -DRIVER_MODULE(miibus, cpsw, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, cpsw, miibus_driver, 0, 0); MODULE_DEPEND(cpsw, ether, 1, 1, 1); MODULE_DEPEND(cpsw, miibus, 1, 1, 1); diff --git a/sys/arm64/broadcom/genet/if_genet.c b/sys/arm64/broadcom/genet/if_genet.c index 4532c8d32f90..47ff3a484387 100644 --- a/sys/arm64/broadcom/genet/if_genet.c +++ b/sys/arm64/broadcom/genet/if_genet.c @@ -1825,6 +1825,6 @@ static driver_t gen_driver = { static devclass_t gen_devclass; DRIVER_MODULE(genet, simplebus, gen_driver, gen_devclass, 0, 0); -DRIVER_MODULE(miibus, genet, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, genet, miibus_driver, 0, 0); MODULE_DEPEND(genet, ether, 1, 1, 1); MODULE_DEPEND(genet, miibus, 1, 1, 1); diff --git a/sys/dev/ae/if_ae.c b/sys/dev/ae/if_ae.c index 3858f4867839..dfef57e44a5b 100644 --- a/sys/dev/ae/if_ae.c +++ b/sys/dev/ae/if_ae.c @@ -178,7 +178,7 @@ static devclass_t ae_devclass; DRIVER_MODULE(ae, pci, ae_driver, ae_devclass, 0, 0); MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, ae, ae_devs, nitems(ae_devs)); -DRIVER_MODULE(miibus, ae, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, ae, miibus_driver, 0, 0); MODULE_DEPEND(ae, pci, 1, 1, 1); MODULE_DEPEND(ae, ether, 1, 1, 1); MODULE_DEPEND(ae, miibus, 1, 1, 1); diff --git a/sys/dev/age/if_age.c b/sys/dev/age/if_age.c index aee1b7eeed09..a4b763a1d748 100644 --- a/sys/dev/age/if_age.c +++ b/sys/dev/age/if_age.c @@ -183,7 +183,7 @@ static devclass_t age_devclass; DRIVER_MODULE(age, pci, age_driver, age_devclass, 0, 0); MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, age, age_devs, nitems(age_devs)); -DRIVER_MODULE(miibus, age, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, age, miibus_driver, 0, 0); static struct resource_spec age_res_spec_mem[] = { { SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE }, diff --git a/sys/dev/al_eth/al_eth.c b/sys/dev/al_eth/al_eth.c index bfc94275a21c..7af41993009d 100644 --- a/sys/dev/al_eth/al_eth.c +++ b/sys/dev/al_eth/al_eth.c @@ -257,7 +257,7 @@ static driver_t al_driver = { }; DRIVER_MODULE(al, pci, al_driver, al_devclass, 0, 0); -DRIVER_MODULE(miibus, al, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, al, miibus_driver, 0, 0); static int al_probe(device_t dev) diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c index 7a11c3bea9db..e1898a2827aa 100644 --- a/sys/dev/alc/if_alc.c +++ b/sys/dev/alc/if_alc.c @@ -245,7 +245,7 @@ static devclass_t alc_devclass; DRIVER_MODULE(alc, pci, alc_driver, alc_devclass, 0, 0); MODULE_PNP_INFO("U16:vendor;U16:device", pci, alc, alc_ident_table, nitems(alc_ident_table) - 1); -DRIVER_MODULE(miibus, alc, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, alc, miibus_driver, 0, 0); static struct resource_spec alc_res_spec_mem[] = { { SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE }, diff --git a/sys/dev/ale/if_ale.c b/sys/dev/ale/if_ale.c index decd61153cc6..45ece1f7ce4d 100644 --- a/sys/dev/ale/if_ale.c +++ b/sys/dev/ale/if_ale.c @@ -180,7 +180,7 @@ static devclass_t ale_devclass; DRIVER_MODULE(ale, pci, ale_driver, ale_devclass, NULL, NULL); MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, ale, ale_devs, nitems(ale_devs)); -DRIVER_MODULE(miibus, ale, miibus_driver, miibus_devclass, NULL, NULL); +DRIVER_MODULE(miibus, ale, miibus_driver, NULL, NULL); static struct resource_spec ale_res_spec_mem[] = { { SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE }, diff --git a/sys/dev/altera/atse/if_atse_fdt.c b/sys/dev/altera/atse/if_atse_fdt.c index 83eb823b3204..55631eb1b99c 100644 --- a/sys/dev/altera/atse/if_atse_fdt.c +++ b/sys/dev/altera/atse/if_atse_fdt.c @@ -144,4 +144,4 @@ static driver_t atse_driver_fdt = { }; DRIVER_MODULE(atse, simplebus, atse_driver_fdt, atse_devclass, 0, 0); -DRIVER_MODULE(miibus, atse, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, atse, miibus_driver, 0, 0); diff --git a/sys/dev/altera/atse/if_atse_nexus.c b/sys/dev/altera/atse/if_atse_nexus.c index 146ea752dbe7..0d1b0d3d1200 100644 --- a/sys/dev/altera/atse/if_atse_nexus.c +++ b/sys/dev/altera/atse/if_atse_nexus.c @@ -157,4 +157,4 @@ static driver_t atse_driver_nexus = { }; DRIVER_MODULE(atse, nexus, atse_driver_nexus, atse_devclass, 0, 0); -DRIVER_MODULE(miibus, atse, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, atse, miibus_driver, 0, 0); diff --git a/sys/dev/axgbe/if_axgbe_pci.c b/sys/dev/axgbe/if_axgbe_pci.c index 2a3911cf93cd..beae662ce60d 100644 --- a/sys/dev/axgbe/if_axgbe_pci.c +++ b/sys/dev/axgbe/if_axgbe_pci.c @@ -197,7 +197,7 @@ static driver_t ax_driver = { devclass_t ax_devclass; DRIVER_MODULE(axp, pci, ax_driver, ax_devclass, 0, 0); -DRIVER_MODULE(miibus, ax, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, ax, miibus_driver, 0, 0); IFLIB_PNP_INFO(pci, ax_driver, axgbe_vendor_info_array); MODULE_DEPEND(ax, pci, 1, 1, 1); diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c index da1f7a38fdd6..dc55e8fa404d 100644 --- a/sys/dev/bce/if_bce.c +++ b/sys/dev/bce/if_bce.c @@ -522,7 +522,7 @@ MODULE_DEPEND(bce, ether, 1, 1, 1); MODULE_DEPEND(bce, miibus, 1, 1, 1); DRIVER_MODULE(bce, pci, bce_driver, bce_devclass, NULL, NULL); -DRIVER_MODULE(miibus, bce, miibus_driver, miibus_devclass, NULL, NULL); +DRIVER_MODULE(miibus, bce, miibus_driver, NULL, NULL); MODULE_PNP_INFO("U16:vendor;U16:device;U16:#;U16:#;D:#", pci, bce, bce_devs, nitems(bce_devs) - 1); diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index bab730f56fb9..d5024cd68ee8 100644 --- a/sys/dev/bfe/if_bfe.c +++ b/sys/dev/bfe/if_bfe.c @@ -158,7 +158,7 @@ static devclass_t bfe_devclass; DRIVER_MODULE(bfe, pci, bfe_driver, bfe_devclass, 0, 0); MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, bfe, bfe_devs, nitems(bfe_devs) - 1); -DRIVER_MODULE(miibus, bfe, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, bfe, miibus_driver, 0, 0); /* * Probe for a Broadcom 4401 chip. diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 825ac5db0b20..2fc96db112a8 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -537,7 +537,7 @@ static devclass_t bge_devclass; DRIVER_MODULE(bge, pci, bge_driver, bge_devclass, 0, 0); MODULE_PNP_INFO("U16:vendor;U16:device", pci, bge, bge_devs, nitems(bge_devs) - 1); -DRIVER_MODULE(miibus, bge, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, bge, miibus_driver, 0, 0); static int bge_allow_asf = 1; diff --git a/sys/dev/cadence/if_cgem.c b/sys/dev/cadence/if_cgem.c index 948e1c6b6c69..649045a0dad3 100644 --- a/sys/dev/cadence/if_cgem.c +++ b/sys/dev/cadence/if_cgem.c @@ -1962,7 +1962,7 @@ static driver_t cgem_driver = { }; DRIVER_MODULE(cgem, simplebus, cgem_driver, cgem_devclass, NULL, NULL); -DRIVER_MODULE(miibus, cgem, miibus_driver, miibus_devclass, NULL, NULL); +DRIVER_MODULE(miibus, cgem, miibus_driver, NULL, NULL); MODULE_DEPEND(cgem, miibus, 1, 1, 1); MODULE_DEPEND(cgem, ether, 1, 1, 1); SIMPLEBUS_PNP_INFO(compat_data); diff --git a/sys/dev/cas/if_cas.c b/sys/dev/cas/if_cas.c index 6b66ca9f63a7..fa2a51eb377b 100644 --- a/sys/dev/cas/if_cas.c +++ b/sys/dev/cas/if_cas.c @@ -2615,7 +2615,7 @@ static const struct cas_pci_dev { DRIVER_MODULE(cas, pci, cas_pci_driver, cas_devclass, 0, 0); MODULE_PNP_INFO("W32:vendor/device", pci, cas, cas_pci_devlist, nitems(cas_pci_devlist) - 1); -DRIVER_MODULE(miibus, cas, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, cas, miibus_driver, 0, 0); MODULE_DEPEND(cas, pci, 1, 1, 1); static int diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index f471d1192dcb..e9949a0e20fa 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -356,7 +356,7 @@ DRIVER_MODULE_ORDERED(dc, pci, dc_driver, dc_devclass, 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, miibus_devclass, NULL, NULL); +DRIVER_MODULE(miibus, dc, miibus_driver, NULL, NULL); #define DC_SETBIT(sc, reg, x) \ CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x)) diff --git a/sys/dev/dme/if_dme.c b/sys/dev/dme/if_dme.c index 5ffcf551bf93..4f989d44194e 100644 --- a/sys/dev/dme/if_dme.c +++ b/sys/dev/dme/if_dme.c @@ -1058,5 +1058,5 @@ static devclass_t dme_devclass; MODULE_DEPEND(dme, ether, 1, 1, 1); MODULE_DEPEND(dme, miibus, 1, 1, 1); DRIVER_MODULE(dme, simplebus, dme_driver, dme_devclass, 0, 0); -DRIVER_MODULE(miibus, dme, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, dme, miibus_driver, 0, 0); diff --git a/sys/dev/dpaa/fman_mdio.c b/sys/dev/dpaa/fman_mdio.c index f6e9a4b7bfda..7f5b4761b098 100644 --- a/sys/dev/dpaa/fman_mdio.c +++ b/sys/dev/dpaa/fman_mdio.c @@ -206,6 +206,6 @@ pqmdio_miibus_writereg(device_t dev, int phy, int reg, int value) static devclass_t pqmdio_devclass; DRIVER_MODULE(pqmdio, fman, pqmdio_driver, pqmdio_devclass, 0, 0); -DRIVER_MODULE(miibus, pqmdio, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, pqmdio, miibus_driver, 0, 0); MODULE_DEPEND(pqmdio, miibus, 1, 1, 1); diff --git a/sys/dev/dpaa/if_dtsec_fdt.c b/sys/dev/dpaa/if_dtsec_fdt.c index 2e2b9a2c15d9..65010dc38f5e 100644 --- a/sys/dev/dpaa/if_dtsec_fdt.c +++ b/sys/dev/dpaa/if_dtsec_fdt.c @@ -91,7 +91,7 @@ static driver_t dtsec_driver = { static devclass_t dtsec_devclass; DRIVER_MODULE(dtsec, fman, dtsec_driver, dtsec_devclass, 0, 0); -DRIVER_MODULE(miibus, dtsec, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, dtsec, miibus_driver, 0, 0); MODULE_DEPEND(dtsec, ether, 1, 1, 1); MODULE_DEPEND(dtsec, miibus, 1, 1, 1); diff --git a/sys/dev/dwc/if_dwc.c b/sys/dev/dwc/if_dwc.c index e2bdf9965f84..e676ef64bacc 100644 --- a/sys/dev/dwc/if_dwc.c +++ b/sys/dev/dwc/if_dwc.c @@ -1730,7 +1730,7 @@ driver_t dwc_driver = { static devclass_t dwc_devclass; DRIVER_MODULE(dwc, simplebus, dwc_driver, dwc_devclass, 0, 0); -DRIVER_MODULE(miibus, dwc, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, dwc, miibus_driver, 0, 0); MODULE_DEPEND(dwc, ether, 1, 1, 1); MODULE_DEPEND(dwc, miibus, 1, 1, 1); diff --git a/sys/dev/enetc/if_enetc.c b/sys/dev/enetc/if_enetc.c index 0f2f3a9d1270..76656297044a 100644 --- a/sys/dev/enetc/if_enetc.c +++ b/sys/dev/enetc/if_enetc.c @@ -166,7 +166,7 @@ static driver_t enetc_driver = { }; static devclass_t enetc_devclass; -DRIVER_MODULE(miibus, enetc, miibus_fdt_driver, miibus_fdt_devclass, NULL, NULL); +DRIVER_MODULE(miibus, enetc, miibus_fdt_driver, NULL, NULL); /* Make sure miibus gets procesed first. */ DRIVER_MODULE_ORDERED(enetc, pci, enetc_driver, enetc_devclass, NULL, NULL, SI_ORDER_ANY); diff --git a/sys/dev/et/if_et.c b/sys/dev/et/if_et.c index 37eb5c1b8bb1..03934279a21b 100644 --- a/sys/dev/et/if_et.c +++ b/sys/dev/et/if_et.c @@ -190,7 +190,7 @@ static devclass_t et_devclass; DRIVER_MODULE(et, pci, et_driver, et_devclass, 0, 0); MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, et, et_devices, nitems(et_devices) - 1); -DRIVER_MODULE(miibus, et, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, et, miibus_driver, 0, 0); static int et_rx_intr_npkts = 32; static int et_rx_intr_delay = 20; /* x10 usec */ diff --git a/sys/dev/etherswitch/ar40xx/ar40xx_main.c b/sys/dev/etherswitch/ar40xx/ar40xx_main.c index b43933c21014..68a9f0207b55 100644 --- a/sys/dev/etherswitch/ar40xx/ar40xx_main.c +++ b/sys/dev/etherswitch/ar40xx/ar40xx_main.c @@ -959,7 +959,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, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, ar40xx, miibus_driver, 0, 0); DRIVER_MODULE(mdio, ar40xx, mdio_driver, mdio_devclass, 0, 0); DRIVER_MODULE(etherswitch, ar40xx, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_DEPEND(ar40xx, mdio, 1, 1, 1); diff --git a/sys/dev/etherswitch/arswitch/arswitch.c b/sys/dev/etherswitch/arswitch/arswitch.c index 69718c97bfc4..54d680da3e26 100644 --- a/sys/dev/etherswitch/arswitch/arswitch.c +++ b/sys/dev/etherswitch/arswitch/arswitch.c @@ -1347,7 +1347,7 @@ DEFINE_CLASS_0(arswitch, arswitch_driver, arswitch_methods, static devclass_t arswitch_devclass; DRIVER_MODULE(arswitch, mdio, arswitch_driver, arswitch_devclass, 0, 0); -DRIVER_MODULE(miibus, arswitch, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, arswitch, miibus_driver, 0, 0); DRIVER_MODULE(mdio, arswitch, mdio_driver, mdio_devclass, 0, 0); DRIVER_MODULE(etherswitch, arswitch, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_VERSION(arswitch, 1); diff --git a/sys/dev/etherswitch/e6000sw/e6000sw.c b/sys/dev/etherswitch/e6000sw/e6000sw.c index a9949b896501..b93f278ed432 100644 --- a/sys/dev/etherswitch/e6000sw/e6000sw.c +++ b/sys/dev/etherswitch/e6000sw/e6000sw.c @@ -188,7 +188,7 @@ DEFINE_CLASS_0(e6000sw, e6000sw_driver, e6000sw_methods, DRIVER_MODULE(e6000sw, mdio, e6000sw_driver, e6000sw_devclass, 0, 0); DRIVER_MODULE(etherswitch, e6000sw, etherswitch_driver, etherswitch_devclass, 0, 0); -DRIVER_MODULE(miibus, e6000sw, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, e6000sw, miibus_driver, 0, 0); MODULE_DEPEND(e6000sw, mdio, 1, 1, 1); diff --git a/sys/dev/etherswitch/e6000sw/e6060sw.c b/sys/dev/etherswitch/e6000sw/e6060sw.c index 4704e4b31b56..9ee8e3c5c601 100644 --- a/sys/dev/etherswitch/e6000sw/e6060sw.c +++ b/sys/dev/etherswitch/e6000sw/e6060sw.c @@ -1025,7 +1025,7 @@ DEFINE_CLASS_0(e6060sw, e6060sw_driver, e6060sw_methods, static devclass_t e6060sw_devclass; DRIVER_MODULE(e6060sw, mdio, e6060sw_driver, e6060sw_devclass, 0, 0); -DRIVER_MODULE(miibus, e6060sw, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, e6060sw, miibus_driver, 0, 0); DRIVER_MODULE(mdio, e6060sw, mdio_driver, mdio_devclass, 0, 0); DRIVER_MODULE(etherswitch, e6060sw, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_VERSION(e6060sw, 1); diff --git a/sys/dev/etherswitch/felix/felix.c b/sys/dev/etherswitch/felix/felix.c index 88a490fc3dab..82a1b474c1ff 100644 --- a/sys/dev/etherswitch/felix/felix.c +++ b/sys/dev/etherswitch/felix/felix.c @@ -146,8 +146,7 @@ DEFINE_CLASS_0(felix, felix_driver, felix_methods, DRIVER_MODULE_ORDERED(felix, pci, felix_driver, felix_devclass, NULL, NULL, SI_ORDER_ANY); -DRIVER_MODULE(miibus, felix, miibus_fdt_driver, miibus_fdt_devclass, - NULL, NULL); +DRIVER_MODULE(miibus, felix, miibus_fdt_driver, NULL, NULL); DRIVER_MODULE(etherswitch, felix, etherswitch_driver, etherswitch_devclass, NULL, NULL); MODULE_VERSION(felix, 1); diff --git a/sys/dev/etherswitch/infineon/adm6996fc.c b/sys/dev/etherswitch/infineon/adm6996fc.c index 76e414afb978..9cc8662c3c05 100644 --- a/sys/dev/etherswitch/infineon/adm6996fc.c +++ b/sys/dev/etherswitch/infineon/adm6996fc.c @@ -855,7 +855,7 @@ DEFINE_CLASS_0(adm6996fc, adm6996fc_driver, adm6996fc_methods, static devclass_t adm6996fc_devclass; DRIVER_MODULE(adm6996fc, mdio, adm6996fc_driver, adm6996fc_devclass, 0, 0); -DRIVER_MODULE(miibus, adm6996fc, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, adm6996fc, miibus_driver, 0, 0); DRIVER_MODULE(mdio, adm6996fc, mdio_driver, mdio_devclass, 0, 0); DRIVER_MODULE(etherswitch, adm6996fc, etherswitch_driver, etherswitch_devclass, 0, 0); diff --git a/sys/dev/etherswitch/ip17x/ip17x.c b/sys/dev/etherswitch/ip17x/ip17x.c index 53ced768b41f..5baeb08d752c 100644 --- a/sys/dev/etherswitch/ip17x/ip17x.c +++ b/sys/dev/etherswitch/ip17x/ip17x.c @@ -649,7 +649,7 @@ DEFINE_CLASS_0(ip17x, ip17x_driver, ip17x_methods, static devclass_t ip17x_devclass; DRIVER_MODULE(ip17x, mdio, ip17x_driver, ip17x_devclass, 0, 0); -DRIVER_MODULE(miibus, ip17x, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, ip17x, miibus_driver, 0, 0); DRIVER_MODULE(etherswitch, ip17x, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_VERSION(ip17x, 1); diff --git a/sys/dev/etherswitch/micrel/ksz8995ma.c b/sys/dev/etherswitch/micrel/ksz8995ma.c index 7c8dd695bae1..a9d2e4cf4c2f 100644 --- a/sys/dev/etherswitch/micrel/ksz8995ma.c +++ b/sys/dev/etherswitch/micrel/ksz8995ma.c @@ -957,7 +957,7 @@ DEFINE_CLASS_0(ksz8995ma, ksz8995ma_driver, ksz8995ma_methods, static devclass_t ksz8995ma_devclass; DRIVER_MODULE(ksz8995ma, spibus, ksz8995ma_driver, ksz8995ma_devclass, 0, 0); -DRIVER_MODULE(miibus, ksz8995ma, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, ksz8995ma, miibus_driver, 0, 0); DRIVER_MODULE(etherswitch, ksz8995ma, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_VERSION(ksz8995ma, 1); diff --git a/sys/dev/etherswitch/miiproxy.c b/sys/dev/etherswitch/miiproxy.c index 54fd9b36f568..19a34580cbca 100644 --- a/sys/dev/etherswitch/miiproxy.c +++ b/sys/dev/etherswitch/miiproxy.c @@ -436,6 +436,6 @@ devclass_t miiproxy_devclass; static devclass_t mdioproxy_devclass; DRIVER_MODULE(mdioproxy, mdio, mdioproxy_driver, mdioproxy_devclass, 0, 0); -DRIVER_MODULE(miibus, miiproxy, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, miiproxy, miibus_driver, 0, 0); MODULE_VERSION(miiproxy, 1); MODULE_DEPEND(miiproxy, miibus, 1, 1, 1); diff --git a/sys/dev/etherswitch/mtkswitch/mtkswitch.c b/sys/dev/etherswitch/mtkswitch/mtkswitch.c index 81df2ec82012..d0633535dee6 100644 --- a/sys/dev/etherswitch/mtkswitch/mtkswitch.c +++ b/sys/dev/etherswitch/mtkswitch/mtkswitch.c @@ -666,7 +666,7 @@ DEFINE_CLASS_0(mtkswitch, mtkswitch_driver, mtkswitch_methods, static devclass_t mtkswitch_devclass; DRIVER_MODULE(mtkswitch, simplebus, mtkswitch_driver, mtkswitch_devclass, 0, 0); -DRIVER_MODULE(miibus, mtkswitch, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, mtkswitch, miibus_driver, 0, 0); DRIVER_MODULE(mdio, mtkswitch, mdio_driver, mdio_devclass, 0, 0); DRIVER_MODULE(etherswitch, mtkswitch, etherswitch_driver, etherswitch_devclass, 0, 0); diff --git a/sys/dev/etherswitch/rtl8366/rtl8366rb.c b/sys/dev/etherswitch/rtl8366/rtl8366rb.c index de35e2dc62ba..6bebee26dcd1 100644 --- a/sys/dev/etherswitch/rtl8366/rtl8366rb.c +++ b/sys/dev/etherswitch/rtl8366/rtl8366rb.c @@ -960,7 +960,7 @@ DEFINE_CLASS_0(rtl8366rb, rtl8366rb_driver, rtl8366rb_methods, static devclass_t rtl8366rb_devclass; DRIVER_MODULE(rtl8366rb, iicbus, rtl8366rb_driver, rtl8366rb_devclass, 0, 0); -DRIVER_MODULE(miibus, rtl8366rb, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, rtl8366rb, miibus_driver, 0, 0); DRIVER_MODULE(mdio, rtl8366rb, mdio_driver, mdio_devclass, 0, 0); DRIVER_MODULE(etherswitch, rtl8366rb, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_VERSION(rtl8366rb, 1); diff --git a/sys/dev/etherswitch/ukswitch/ukswitch.c b/sys/dev/etherswitch/ukswitch/ukswitch.c index 8293db0fa571..1c8be6660e2e 100644 --- a/sys/dev/etherswitch/ukswitch/ukswitch.c +++ b/sys/dev/etherswitch/ukswitch/ukswitch.c @@ -576,7 +576,7 @@ DEFINE_CLASS_0(ukswitch, ukswitch_driver, ukswitch_methods, static devclass_t ukswitch_devclass; DRIVER_MODULE(ukswitch, mdio, ukswitch_driver, ukswitch_devclass, 0, 0); -DRIVER_MODULE(miibus, ukswitch, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, ukswitch, miibus_driver, 0, 0); DRIVER_MODULE(mdio, ukswitch, mdio_driver, mdio_devclass, 0, 0); DRIVER_MODULE(etherswitch, ukswitch, etherswitch_driver, etherswitch_devclass, 0, 0); MODULE_VERSION(ukswitch, 1); diff --git a/sys/dev/ffec/if_ffec.c b/sys/dev/ffec/if_ffec.c index 769309119a4f..5de368e4b410 100644 --- a/sys/dev/ffec/if_ffec.c +++ b/sys/dev/ffec/if_ffec.c @@ -1833,7 +1833,7 @@ static driver_t ffec_driver = { static devclass_t ffec_devclass; DRIVER_MODULE(ffec, simplebus, ffec_driver, ffec_devclass, 0, 0); -DRIVER_MODULE(miibus, ffec, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, ffec, miibus_driver, 0, 0); MODULE_DEPEND(ffec, ether, 1, 1, 1); MODULE_DEPEND(ffec, miibus, 1, 1, 1); diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index a5cd909408d7..53b96fb8b8be 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -309,7 +309,7 @@ DRIVER_MODULE_ORDERED(fxp, pci, fxp_driver, fxp_devclass, NULL, NULL, SI_ORDER_ANY); MODULE_PNP_INFO("U16:vendor;U16:device", pci, fxp, fxp_ident_table, nitems(fxp_ident_table) - 1); -DRIVER_MODULE(miibus, fxp, miibus_driver, miibus_devclass, NULL, NULL); +DRIVER_MODULE(miibus, fxp, miibus_driver, NULL, NULL); static struct resource_spec fxp_res_spec_mem[] = { { SYS_RES_MEMORY, FXP_PCI_MMBA, RF_ACTIVE }, diff --git a/sys/dev/gem/if_gem.c b/sys/dev/gem/if_gem.c index d698bdff03e3..9996c33ca161 100644 --- a/sys/dev/gem/if_gem.c +++ b/sys/dev/gem/if_gem.c @@ -134,7 +134,7 @@ static inline void gem_txkick(struct gem_softc *sc); static int gem_watchdog(struct gem_softc *sc); devclass_t gem_devclass; -DRIVER_MODULE(miibus, gem, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, gem, miibus_driver, 0, 0); MODULE_DEPEND(gem, miibus, 1, 1, 1); #ifdef GEM_DEBUG diff --git a/sys/dev/gpio/gpiomdio.c b/sys/dev/gpio/gpiomdio.c index fcc33b919ed9..8c5bc50e2f14 100644 --- a/sys/dev/gpio/gpiomdio.c +++ b/sys/dev/gpio/gpiomdio.c @@ -237,7 +237,7 @@ static driver_t gpiomdio_driver = { EARLY_DRIVER_MODULE(gpiomdio, gpiobus, gpiomdio_driver, gpiomdio_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); -DRIVER_MODULE(miibus, gpiomdio, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, gpiomdio, miibus_driver, 0, 0); MODULE_DEPEND(gpiomdio, gpiobus, 1, 1, 1); MODULE_DEPEND(gpiomdio, miibus, 1, 1, 1); MODULE_DEPEND(gpiomdio, mii_bitbang, 1, 1, 1); diff --git a/sys/dev/jme/if_jme.c b/sys/dev/jme/if_jme.c index 754f9aff61c2..90ecf4bbec58 100644 --- a/sys/dev/jme/if_jme.c +++ b/sys/dev/jme/if_jme.c @@ -193,7 +193,7 @@ static driver_t jme_driver = { static devclass_t jme_devclass; DRIVER_MODULE(jme, pci, jme_driver, jme_devclass, 0, 0); -DRIVER_MODULE(miibus, jme, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, jme, miibus_driver, 0, 0); static struct resource_spec jme_res_spec_mem[] = { { SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE }, diff --git a/sys/dev/lge/if_lge.c b/sys/dev/lge/if_lge.c index 298b66b1b0e2..8d0f0245229a 100644 --- a/sys/dev/lge/if_lge.c +++ b/sys/dev/lge/if_lge.c @@ -190,7 +190,7 @@ static driver_t lge_driver = { static devclass_t lge_devclass; DRIVER_MODULE(lge, pci, lge_driver, lge_devclass, 0, 0); -DRIVER_MODULE(miibus, lge, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, lge, miibus_driver, 0, 0); MODULE_DEPEND(lge, pci, 1, 1, 1); MODULE_DEPEND(lge, ether, 1, 1, 1); MODULE_DEPEND(lge, miibus, 1, 1, 1); diff --git a/sys/dev/mgb/if_mgb.c b/sys/dev/mgb/if_mgb.c index cde7d60927bb..575830a48a97 100644 --- a/sys/dev/mgb/if_mgb.c +++ b/sys/dev/mgb/if_mgb.c @@ -213,10 +213,10 @@ MODULE_VERSION(mgb, 1); #if 0 /* MIIBUS_DEBUG */ /* If MIIBUS debug stuff is in attach then order matters. Use below instead. */ -DRIVER_MODULE_ORDERED(miibus, mgb, miibus_driver, miibus_devclass, NULL, NULL, +DRIVER_MODULE_ORDERED(miibus, mgb, miibus_driver, NULL, NULL, SI_ORDER_ANY); #endif /* MIIBUS_DEBUG */ -DRIVER_MODULE(miibus, mgb, miibus_driver, miibus_devclass, NULL, NULL); +DRIVER_MODULE(miibus, mgb, miibus_driver, NULL, NULL); MODULE_DEPEND(mgb, pci, 1, 1, 1); MODULE_DEPEND(mgb, ether, 1, 1, 1); diff --git a/sys/dev/mge/if_mge.c b/sys/dev/mge/if_mge.c index 3c447a48f564..937b4d63121f 100644 --- a/sys/dev/mge/if_mge.c +++ b/sys/dev/mge/if_mge.c @@ -178,7 +178,7 @@ static devclass_t mge_devclass; static int switch_attached = 0; DRIVER_MODULE(mge, simplebus, mge_driver, mge_devclass, 0, 0); -DRIVER_MODULE(miibus, mge, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, mge, miibus_driver, 0, 0); DRIVER_MODULE(mdio, mge, mdio_driver, mdio_devclass, 0, 0); MODULE_DEPEND(mge, ether, 1, 1, 1); MODULE_DEPEND(mge, miibus, 1, 1, 1); diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c index 5f782b15a151..fe56f92c4193 100644 --- a/sys/dev/mii/mii.c +++ b/sys/dev/mii/mii.c @@ -101,7 +101,6 @@ static device_method_t miibus_methods[] = { DEVMETHOD_END }; -devclass_t miibus_devclass; DEFINE_CLASS_0(miibus, miibus_driver, miibus_methods, sizeof(struct mii_data)); struct miibus_ivars { diff --git a/sys/dev/mii/mii_fdt.c b/sys/dev/mii/mii_fdt.c index d60c91cc0c8c..69755b610db3 100644 --- a/sys/dev/mii/mii_fdt.c +++ b/sys/dev/mii/mii_fdt.c @@ -350,6 +350,5 @@ static device_method_t miibus_fdt_methods[] = { DEVMETHOD_END }; -devclass_t miibus_fdt_devclass; DEFINE_CLASS_1(miibus, miibus_fdt_driver, miibus_fdt_methods, sizeof(struct mii_data), miibus_driver); diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h index 95cfb866b5f7..a4fdd22db072 100644 --- a/sys/dev/mii/miivar.h +++ b/sys/dev/mii/miivar.h @@ -263,11 +263,9 @@ enum miibus_device_ivars { MIIBUS_ACCESSOR(flags, FLAGS, u_int) -extern devclass_t miibus_devclass; DECLARE_CLASS(miibus_driver); #ifdef FDT -extern devclass_t miibus_fdt_devclass; DECLARE_CLASS(miibus_fdt_driver); #endif diff --git a/sys/dev/msk/if_msk.c b/sys/dev/msk/if_msk.c index 73c6b4fa5458..6436079ec38b 100644 --- a/sys/dev/msk/if_msk.c +++ b/sys/dev/msk/if_msk.c @@ -376,7 +376,7 @@ static devclass_t msk_devclass; DRIVER_MODULE(mskc, pci, mskc_driver, mskc_devclass, NULL, NULL); DRIVER_MODULE(msk, mskc, msk_driver, msk_devclass, NULL, NULL); -DRIVER_MODULE(miibus, msk, miibus_driver, miibus_devclass, NULL, NULL); +DRIVER_MODULE(miibus, msk, miibus_driver, NULL, NULL); static struct resource_spec msk_res_spec_io[] = { { SYS_RES_IOPORT, PCIR_BAR(1), RF_ACTIVE }, diff --git a/sys/dev/neta/if_mvneta.c b/sys/dev/neta/if_mvneta.c index 05662cdc7f77..bfdb2c545307 100644 --- a/sys/dev/neta/if_mvneta.c +++ b/sys/dev/neta/if_mvneta.c @@ -220,7 +220,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, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, mvneta, miibus_driver, 0, 0); DRIVER_MODULE(mdio, mvneta, mdio_driver, mdio_devclass, 0, 0); MODULE_DEPEND(mvneta, mdio, 1, 1, 1); MODULE_DEPEND(mvneta, ether, 1, 1, 1); diff --git a/sys/dev/nfe/if_nfe.c b/sys/dev/nfe/if_nfe.c index 2e80b82de5dd..5217dca7df96 100644 --- a/sys/dev/nfe/if_nfe.c +++ b/sys/dev/nfe/if_nfe.c @@ -184,7 +184,7 @@ static driver_t nfe_driver = { static devclass_t nfe_devclass; DRIVER_MODULE(nfe, pci, nfe_driver, nfe_devclass, 0, 0); -DRIVER_MODULE(miibus, nfe, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, nfe, miibus_driver, 0, 0); static struct nfe_type nfe_devs[] = { {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_NFORCE_LAN, diff --git a/sys/dev/nge/if_nge.c b/sys/dev/nge/if_nge.c index 67e1f03ebdd2..fa92857554cf 100644 --- a/sys/dev/nge/if_nge.c +++ b/sys/dev/nge/if_nge.c @@ -243,7 +243,7 @@ static driver_t nge_driver = { static devclass_t nge_devclass; DRIVER_MODULE(nge, pci, nge_driver, nge_devclass, 0, 0); -DRIVER_MODULE(miibus, nge, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, nge, miibus_driver, 0, 0); #define NGE_SETBIT(sc, reg, x) \ CSR_WRITE_4(sc, reg, \ diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index 5d1446e51abf..3e674908b22f 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -353,7 +353,7 @@ static driver_t re_driver = { static devclass_t re_devclass; DRIVER_MODULE(re, pci, re_driver, re_devclass, 0, 0); -DRIVER_MODULE(miibus, re, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, re, miibus_driver, 0, 0); #define EE_SET(x) \ CSR_WRITE_1(sc, RL_EECMD, \ diff --git a/sys/dev/rl/if_rl.c b/sys/dev/rl/if_rl.c index f8df134bf37f..32bd569809e0 100644 --- a/sys/dev/rl/if_rl.c +++ b/sys/dev/rl/if_rl.c @@ -262,7 +262,7 @@ DRIVER_MODULE(rl, pci, rl_driver, rl_devclass, 0, 0); MODULE_PNP_INFO("U16:vendor;U16:device", pci, rl, rl_devs, nitems(rl_devs) - 1); DRIVER_MODULE(rl, cardbus, rl_driver, rl_devclass, 0, 0); -DRIVER_MODULE(miibus, rl, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, rl, miibus_driver, 0, 0); #define EE_SET(x) \ CSR_WRITE_1(sc, RL_EECMD, \ diff --git a/sys/dev/sge/if_sge.c b/sys/dev/sge/if_sge.c index 3a1fc87c3177..a75276b83085 100644 --- a/sys/dev/sge/if_sge.c +++ b/sys/dev/sge/if_sge.c @@ -176,7 +176,7 @@ static driver_t sge_driver = { static devclass_t sge_devclass; DRIVER_MODULE(sge, pci, sge_driver, sge_devclass, 0, 0); -DRIVER_MODULE(miibus, sge, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, sge, miibus_driver, 0, 0); /* * Register space access macros. diff --git a/sys/dev/sis/if_sis.c b/sys/dev/sis/if_sis.c index 7780610a89a6..61d3f8b72042 100644 --- a/sys/dev/sis/if_sis.c +++ b/sys/dev/sis/if_sis.c @@ -2413,4 +2413,4 @@ static driver_t sis_driver = { static devclass_t sis_devclass; DRIVER_MODULE(sis, pci, sis_driver, sis_devclass, 0, 0); -DRIVER_MODULE(miibus, sis, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, sis, miibus_driver, 0, 0); diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index 1a34b4522d3c..5480dd86c4cc 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -331,7 +331,7 @@ static devclass_t sk_devclass; DRIVER_MODULE(skc, pci, skc_driver, skc_devclass, NULL, NULL); DRIVER_MODULE(sk, skc, sk_driver, sk_devclass, NULL, NULL); -DRIVER_MODULE(miibus, sk, miibus_driver, miibus_devclass, NULL, NULL); +DRIVER_MODULE(miibus, sk, miibus_driver, NULL, NULL); static struct resource_spec sk_res_spec_io[] = { { SYS_RES_IOPORT, PCIR_BAR(1), RF_ACTIVE }, diff --git a/sys/dev/smc/if_smc.c b/sys/dev/smc/if_smc.c index 830a8af82923..ed1f766da00d 100644 --- a/sys/dev/smc/if_smc.c +++ b/sys/dev/smc/if_smc.c @@ -500,7 +500,7 @@ driver_t smc_driver = { sizeof(struct smc_softc), }; -DRIVER_MODULE(miibus, smc, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, smc, miibus_driver, 0, 0); static void smc_start(struct ifnet *ifp) diff --git a/sys/dev/ste/if_ste.c b/sys/dev/ste/if_ste.c index 77ef3ef8e6fa..41375c13de60 100644 --- a/sys/dev/ste/if_ste.c +++ b/sys/dev/ste/if_ste.c @@ -181,7 +181,7 @@ static driver_t ste_driver = { static devclass_t ste_devclass; DRIVER_MODULE(ste, pci, ste_driver, ste_devclass, 0, 0); -DRIVER_MODULE(miibus, ste, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, ste, miibus_driver, 0, 0); #define STE_SETBIT4(sc, reg, x) \ CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x)) diff --git a/sys/dev/stge/if_stge.c b/sys/dev/stge/if_stge.c index a043ca9a6e80..0c93a18c0235 100644 --- a/sys/dev/stge/if_stge.c +++ b/sys/dev/stge/if_stge.c @@ -229,7 +229,7 @@ static driver_t stge_driver = { static devclass_t stge_devclass; DRIVER_MODULE(stge, pci, stge_driver, stge_devclass, 0, 0); -DRIVER_MODULE(miibus, stge, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, stge, miibus_driver, 0, 0); static struct resource_spec stge_res_spec_io[] = { { SYS_RES_IOPORT, PCIR_BAR(0), RF_ACTIVE }, diff --git a/sys/dev/tsec/if_tsec.c b/sys/dev/tsec/if_tsec.c index 5012b7a0e2d4..e8db204f07bc 100644 --- a/sys/dev/tsec/if_tsec.c +++ b/sys/dev/tsec/if_tsec.c @@ -110,7 +110,7 @@ static void tsec_setup_multicast(struct tsec_softc *sc); static int tsec_set_mtu(struct tsec_softc *sc, unsigned int mtu); devclass_t tsec_devclass; -DRIVER_MODULE(miibus, tsec, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, tsec, miibus_driver, 0, 0); MODULE_DEPEND(tsec, ether, 1, 1, 1); MODULE_DEPEND(tsec, miibus, 1, 1, 1); diff --git a/sys/dev/usb/net/if_aue.c b/sys/dev/usb/net/if_aue.c index 36cd5f4b59ba..542bcad44749 100644 --- a/sys/dev/usb/net/if_aue.c +++ b/sys/dev/usb/net/if_aue.c @@ -281,7 +281,7 @@ static driver_t aue_driver = { static devclass_t aue_devclass; DRIVER_MODULE(aue, uhub, aue_driver, aue_devclass, NULL, 0); -DRIVER_MODULE(miibus, aue, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, aue, miibus_driver, 0, 0); MODULE_DEPEND(aue, uether, 1, 1, 1); MODULE_DEPEND(aue, usb, 1, 1, 1); MODULE_DEPEND(aue, ether, 1, 1, 1); diff --git a/sys/dev/usb/net/if_axe.c b/sys/dev/usb/net/if_axe.c index eaab2798c242..3eb2fec2d448 100644 --- a/sys/dev/usb/net/if_axe.c +++ b/sys/dev/usb/net/if_axe.c @@ -277,7 +277,7 @@ static driver_t axe_driver = { static devclass_t axe_devclass; DRIVER_MODULE(axe, uhub, axe_driver, axe_devclass, NULL, 0); -DRIVER_MODULE(miibus, axe, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, axe, miibus_driver, 0, 0); MODULE_DEPEND(axe, uether, 1, 1, 1); MODULE_DEPEND(axe, usb, 1, 1, 1); MODULE_DEPEND(axe, ether, 1, 1, 1); diff --git a/sys/dev/usb/net/if_axge.c b/sys/dev/usb/net/if_axge.c index e777a8298cd9..219326b66ba4 100644 --- a/sys/dev/usb/net/if_axge.c +++ b/sys/dev/usb/net/if_axge.c @@ -194,7 +194,7 @@ static driver_t axge_driver = { static devclass_t axge_devclass; DRIVER_MODULE(axge, uhub, axge_driver, axge_devclass, NULL, NULL); -DRIVER_MODULE(miibus, axge, miibus_driver, miibus_devclass, NULL, NULL); +DRIVER_MODULE(miibus, axge, miibus_driver, NULL, NULL); MODULE_DEPEND(axge, uether, 1, 1, 1); MODULE_DEPEND(axge, usb, 1, 1, 1); MODULE_DEPEND(axge, ether, 1, 1, 1); diff --git a/sys/dev/usb/net/if_mos.c b/sys/dev/usb/net/if_mos.c index d8f9cefedee9..14f1be4157b3 100644 --- a/sys/dev/usb/net/if_mos.c +++ b/sys/dev/usb/net/if_mos.c @@ -248,7 +248,7 @@ static driver_t mos_driver = { static devclass_t mos_devclass; DRIVER_MODULE(mos, uhub, mos_driver, mos_devclass, NULL, 0); -DRIVER_MODULE(miibus, mos, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, mos, miibus_driver, 0, 0); MODULE_DEPEND(mos, uether, 1, 1, 1); MODULE_DEPEND(mos, usb, 1, 1, 1); MODULE_DEPEND(mos, ether, 1, 1, 1); diff --git a/sys/dev/usb/net/if_muge.c b/sys/dev/usb/net/if_muge.c index a5878f7c0a4c..006dcf29b1b9 100644 --- a/sys/dev/usb/net/if_muge.c +++ b/sys/dev/usb/net/if_muge.c @@ -2267,7 +2267,7 @@ static driver_t muge_driver = { static devclass_t muge_devclass; DRIVER_MODULE(muge, uhub, muge_driver, muge_devclass, NULL, NULL); -DRIVER_MODULE(miibus, muge, miibus_driver, miibus_devclass, NULL, NULL); +DRIVER_MODULE(miibus, muge, miibus_driver, NULL, NULL); MODULE_DEPEND(muge, uether, 1, 1, 1); MODULE_DEPEND(muge, usb, 1, 1, 1); MODULE_DEPEND(muge, ether, 1, 1, 1); diff --git a/sys/dev/usb/net/if_rue.c b/sys/dev/usb/net/if_rue.c index 58135332dacf..59b91c89ed70 100644 --- a/sys/dev/usb/net/if_rue.c +++ b/sys/dev/usb/net/if_rue.c @@ -216,7 +216,7 @@ static devclass_t rue_devclass; DRIVER_MODULE_ORDERED(rue, uhub, rue_driver, rue_devclass, NULL, NULL, SI_ORDER_ANY); -DRIVER_MODULE(miibus, rue, miibus_driver, miibus_devclass, NULL, NULL); +DRIVER_MODULE(miibus, rue, miibus_driver, NULL, NULL); MODULE_DEPEND(rue, uether, 1, 1, 1); MODULE_DEPEND(rue, usb, 1, 1, 1); MODULE_DEPEND(rue, ether, 1, 1, 1); diff --git a/sys/dev/usb/net/if_smsc.c b/sys/dev/usb/net/if_smsc.c index 00c127937412..c1a081511b32 100644 --- a/sys/dev/usb/net/if_smsc.c +++ b/sys/dev/usb/net/if_smsc.c @@ -1772,7 +1772,7 @@ static driver_t smsc_driver = { static devclass_t smsc_devclass; DRIVER_MODULE(smsc, uhub, smsc_driver, smsc_devclass, NULL, 0); -DRIVER_MODULE(miibus, smsc, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, smsc, miibus_driver, 0, 0); MODULE_DEPEND(smsc, uether, 1, 1, 1); MODULE_DEPEND(smsc, usb, 1, 1, 1); MODULE_DEPEND(smsc, ether, 1, 1, 1); diff --git a/sys/dev/usb/net/if_udav.c b/sys/dev/usb/net/if_udav.c index 6d6d020ac875..98764095dfe2 100644 --- a/sys/dev/usb/net/if_udav.c +++ b/sys/dev/usb/net/if_udav.c @@ -188,7 +188,7 @@ static const STRUCT_USB_HOST_ID udav_devs[] = { }; DRIVER_MODULE(udav, uhub, udav_driver, udav_devclass, NULL, 0); -DRIVER_MODULE(miibus, udav, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, udav, miibus_driver, 0, 0); MODULE_DEPEND(udav, uether, 1, 1, 1); MODULE_DEPEND(udav, usb, 1, 1, 1); MODULE_DEPEND(udav, ether, 1, 1, 1); diff --git a/sys/dev/usb/net/if_ure.c b/sys/dev/usb/net/if_ure.c index fa04a6a212ba..187ac9bde396 100644 --- a/sys/dev/usb/net/if_ure.c +++ b/sys/dev/usb/net/if_ure.c @@ -192,7 +192,7 @@ static driver_t ure_driver = { static devclass_t ure_devclass; DRIVER_MODULE(ure, uhub, ure_driver, ure_devclass, NULL, NULL); -DRIVER_MODULE(miibus, ure, miibus_driver, miibus_devclass, NULL, NULL); +DRIVER_MODULE(miibus, ure, miibus_driver, NULL, NULL); MODULE_DEPEND(ure, uether, 1, 1, 1); MODULE_DEPEND(ure, usb, 1, 1, 1); MODULE_DEPEND(ure, ether, 1, 1, 1); diff --git a/sys/dev/vge/if_vge.c b/sys/dev/vge/if_vge.c index 5005f8ed9734..4cc3361ada2c 100644 --- a/sys/dev/vge/if_vge.c +++ b/sys/dev/vge/if_vge.c @@ -231,7 +231,7 @@ static driver_t vge_driver = { static devclass_t vge_devclass; DRIVER_MODULE(vge, pci, vge_driver, vge_devclass, 0, 0); -DRIVER_MODULE(miibus, vge, miibus_driver, miibus_devclass, 0, 0); +DRIVER_MODULE(miibus, vge, miibus_driver, 0, 0); *** 68 LINES SKIPPED ***