svn commit: r277176 - head/sys/dev/mii
Gleb Smirnoff
glebius at FreeBSD.org
Wed Jan 14 12:46:39 UTC 2015
Author: glebius
Date: Wed Jan 14 12:46:38 2015
New Revision: 277176
URL: https://svnweb.freebsd.org/changeset/base/277176
Log:
Clean some dead code.
Modified:
head/sys/dev/mii/mii.c
head/sys/dev/mii/mii_physubr.c
head/sys/dev/mii/miivar.h
Modified: head/sys/dev/mii/mii.c
==============================================================================
--- head/sys/dev/mii/mii.c Wed Jan 14 11:53:41 2015 (r277175)
+++ head/sys/dev/mii/mii.c Wed Jan 14 12:46:38 2015 (r277176)
@@ -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)
{
Modified: head/sys/dev/mii/mii_physubr.c
==============================================================================
--- head/sys/dev/mii/mii_physubr.c Wed Jan 14 11:53:41 2015 (r277175)
+++ head/sys/dev/mii/mii_physubr.c Wed Jan 14 12:46:38 2015 (r277176)
@@ -279,12 +279,6 @@ mii_phy_reset(struct mii_softc *sc)
}
void
-mii_phy_down(struct mii_softc *sc)
-{
-
-}
-
-void
mii_phy_update(struct mii_softc *sc, int cmd)
{
struct mii_data *mii = sc->mii_pdata;
@@ -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);
Modified: head/sys/dev/mii/miivar.h
==============================================================================
--- head/sys/dev/mii/miivar.h Wed Jan 14 11:53:41 2015 (r277175)
+++ head/sys/dev/mii/miivar.h Wed Jan 14 12:46:38 2015 (r277176)
@@ -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);
More information about the svn-src-all
mailing list