Clean some dead code.

This commit is contained in:
Gleb Smirnoff 2015-01-14 12:46:38 +00:00
parent 45a7a4a786
commit 501b391d56
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277176
3 changed files with 0 additions and 21 deletions

View File

@ -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)
{

View File

@ -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);

View File

@ -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);