diff options
Diffstat (limited to 'sys/dev/dc/pnphy.c')
-rw-r--r-- | sys/dev/dc/pnphy.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/dev/dc/pnphy.c b/sys/dev/dc/pnphy.c index b3ff923..9b1ec55 100644 --- a/sys/dev/dc/pnphy.c +++ b/sys/dev/dc/pnphy.c @@ -82,13 +82,12 @@ static const char rcsid[] = static int pnphy_probe (device_t); static int pnphy_attach (device_t); -static int pnphy_detach (device_t); static device_method_t pnphy_methods[] = { /* device interface */ DEVMETHOD(device_probe, pnphy_probe), DEVMETHOD(device_attach, pnphy_attach), - DEVMETHOD(device_detach, pnphy_detach), + DEVMETHOD(device_detach, mii_phy_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), { 0, 0 } }; @@ -167,20 +166,6 @@ static int pnphy_attach(dev) return(0); } -static int pnphy_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)); - sc->mii_dev = NULL; - LIST_REMOVE(sc, mii_list); - - return(0); -} - static int pnphy_service(sc, mii, cmd) struct mii_softc *sc; |