diff options
Diffstat (limited to 'sys/dev/mii/exphy.c')
-rw-r--r-- | sys/dev/mii/exphy.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/mii/exphy.c b/sys/dev/mii/exphy.c index 5b887ba..3f0286f 100644 --- a/sys/dev/mii/exphy.c +++ b/sys/dev/mii/exphy.c @@ -93,13 +93,12 @@ static const char rcsid[] = static int exphy_probe (device_t); static int exphy_attach (device_t); -static int exphy_detach (device_t); static device_method_t exphy_methods[] = { /* device interface */ DEVMETHOD(device_probe, exphy_probe), DEVMETHOD(device_attach, exphy_attach), - DEVMETHOD(device_detach, exphy_detach), + DEVMETHOD(device_detach, mii_phy_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), { 0, 0 } }; @@ -202,21 +201,6 @@ static int exphy_attach(dev) return(0); } -static int exphy_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 exphy_service(sc, mii, cmd) struct mii_softc *sc; |