diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-04-29 13:07:38 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-04-29 13:07:38 +0000 |
| commit | 279fe8d15669ab601a2b4d94cce9e607d8012b0b (patch) | |
| tree | bb7ef32db222f40e58ca8b187557f694d084d314 /sys/dev/mii/inphy.c | |
| parent | ccc4300e95754fa2e86a6a028f72679cf9c970be (diff) | |
Notes
Diffstat (limited to 'sys/dev/mii/inphy.c')
| -rw-r--r-- | sys/dev/mii/inphy.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/mii/inphy.c b/sys/dev/mii/inphy.c index 6ad444a03e37..a87f3407462b 100644 --- a/sys/dev/mii/inphy.c +++ b/sys/dev/mii/inphy.c @@ -53,13 +53,12 @@ static int inphy_probe(device_t dev); static int inphy_attach(device_t dev); -static int inphy_detach(device_t dev); static device_method_t inphy_methods[] = { /* device interface */ DEVMETHOD(device_probe, inphy_probe), DEVMETHOD(device_attach, inphy_attach), - DEVMETHOD(device_detach, inphy_detach), + DEVMETHOD(device_detach, mii_phy_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), { 0, 0 } }; @@ -153,21 +152,6 @@ inphy_attach(device_t dev) } static int -inphy_detach(device_t dev) -{ - struct mii_softc *sc; - struct mii_data *mii; - - sc = device_get_softc(dev); - mii = device_get_softc(device_get_softc(dev)); - mii_phy_auto_stop(sc); - sc->mii_dev = NULL; - LIST_REMOVE(sc, mii_list); - - return (0); -} - -static int inphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) { struct ifmedia_entry *ife = mii->mii_media.ifm_cur; |
