diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c index 77c13470db1b..c4ff4ac092cf 100644 --- a/sys/dev/mii/mii.c +++ b/sys/dev/mii/mii.c @@ -612,18 +612,6 @@ mii_pollstat(struct mii_data *mii) } } -/* - * Inform the PHYs that the interface is down. - */ -void -mii_down(struct mii_data *mii) -{ - struct mii_softc *child; - - LIST_FOREACH(child, &mii->mii_phys, mii_list) - mii_phy_down(child); -} - static unsigned char mii_bitreverse(unsigned char x) { diff --git a/sys/dev/mii/mii_physubr.c b/sys/dev/mii/mii_physubr.c index c8ee613a9179..43e7a105339d 100644 --- a/sys/dev/mii/mii_physubr.c +++ b/sys/dev/mii/mii_physubr.c @@ -278,12 +278,6 @@ mii_phy_reset(struct mii_softc *sc) PHY_WRITE(sc, MII_BMCR, reg); } -void -mii_phy_down(struct mii_softc *sc) -{ - -} - void mii_phy_update(struct mii_softc *sc, int cmd) { @@ -479,7 +473,6 @@ mii_phy_detach(device_t dev) struct mii_softc *sc; sc = device_get_softc(dev); - mii_phy_down(sc); sc->mii_dev = NULL; LIST_REMOVE(sc, mii_list); return (0); diff --git a/sys/dev/mii/miivar.h b/sys/dev/mii/miivar.h index a45717985241..bc2a91c3cab2 100644 --- a/sys/dev/mii/miivar.h +++ b/sys/dev/mii/miivar.h @@ -235,7 +235,6 @@ extern driver_t miibus_driver; int mii_attach(device_t, device_t *, if_t, ifm_change_cb_t, ifm_stat_cb_t, int, int, int, int); -void mii_down(struct mii_data *); int mii_mediachg(struct mii_data *); void mii_tick(struct mii_data *); void mii_pollstat(struct mii_data *); @@ -243,7 +242,6 @@ void mii_phy_add_media(struct mii_softc *); int mii_phy_auto(struct mii_softc *); int mii_phy_detach(device_t dev); -void mii_phy_down(struct mii_softc *); u_int mii_phy_flowstatus(struct mii_softc *); void mii_phy_reset(struct mii_softc *); void mii_phy_setmedia(struct mii_softc *sc);