Clean some dead code.
This commit is contained in:
parent
45a7a4a786
commit
501b391d56
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user