summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/nsphy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mii/nsphy.c')
-rw-r--r--sys/dev/mii/nsphy.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/mii/nsphy.c b/sys/dev/mii/nsphy.c
index 3e47c7d..3667d44 100644
--- a/sys/dev/mii/nsphy.c
+++ b/sys/dev/mii/nsphy.c
@@ -97,13 +97,12 @@ static const char rcsid[] =
static int nsphy_probe (device_t);
static int nsphy_attach (device_t);
-static int nsphy_detach (device_t);
static device_method_t nsphy_methods[] = {
/* device interface */
DEVMETHOD(device_probe, nsphy_probe),
DEVMETHOD(device_attach, nsphy_attach),
- DEVMETHOD(device_detach, nsphy_detach),
+ DEVMETHOD(device_detach, mii_phy_detach),
DEVMETHOD(device_shutdown, bus_generic_shutdown),
{ 0, 0 }
};
@@ -189,21 +188,6 @@ static int nsphy_attach(dev)
return(0);
}
-static int nsphy_detach(dev)
- device_t dev;
-{
- struct mii_softc *sc;
- struct mii_data *mii;
-
- sc = device_get_softc(dev);
- mii = device_get_softc(device_get_parent(dev));
- mii_phy_auto_stop(sc);
- sc->mii_dev = NULL;
- LIST_REMOVE(sc, mii_list);
-
- return(0);
-}
-
static int
nsphy_service(sc, mii, cmd)
struct mii_softc *sc;
OpenPOWER on IntegriCloud