diff options
Diffstat (limited to 'sys/dev/mii/tlphy.c')
-rw-r--r-- | sys/dev/mii/tlphy.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/dev/mii/tlphy.c b/sys/dev/mii/tlphy.c index f6c5b62..70a79c7 100644 --- a/sys/dev/mii/tlphy.c +++ b/sys/dev/mii/tlphy.c @@ -104,13 +104,12 @@ struct tlphy_softc { static int tlphy_probe (device_t); static int tlphy_attach (device_t); -static int tlphy_detach (device_t); static device_method_t tlphy_methods[] = { /* device interface */ DEVMETHOD(device_probe, tlphy_probe), DEVMETHOD(device_attach, tlphy_attach), - DEVMETHOD(device_detach, tlphy_detach), + DEVMETHOD(device_detach, mii_phy_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), { 0, 0 } }; @@ -226,20 +225,6 @@ static int tlphy_attach(dev) return(0); } -static int tlphy_detach(dev) - device_t dev; -{ - struct tlphy_softc *sc; - struct mii_data *mii; - - sc = device_get_softc(dev); - mii = device_get_softc(device_get_parent(dev)); - sc->sc_mii.mii_dev = NULL; - LIST_REMOVE(&sc->sc_mii, mii_list); - - return(0); -} - static int tlphy_service(self, mii, cmd) struct mii_softc *self; |