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/rlphy.c | |
| parent | ccc4300e95754fa2e86a6a028f72679cf9c970be (diff) | |
Notes
Diffstat (limited to 'sys/dev/mii/rlphy.c')
| -rw-r--r-- | sys/dev/mii/rlphy.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/mii/rlphy.c b/sys/dev/mii/rlphy.c index e21ad80a0f61..f45046a27c71 100644 --- a/sys/dev/mii/rlphy.c +++ b/sys/dev/mii/rlphy.c @@ -62,13 +62,12 @@ static const char rcsid[] = static int rlphy_probe (device_t); static int rlphy_attach (device_t); -static int rlphy_detach (device_t); static device_method_t rlphy_methods[] = { /* device interface */ DEVMETHOD(device_probe, rlphy_probe), DEVMETHOD(device_attach, rlphy_attach), - DEVMETHOD(device_detach, rlphy_detach), + DEVMETHOD(device_detach, mii_phy_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), { 0, 0 } }; @@ -174,21 +173,6 @@ static int rlphy_attach(dev) return(0); } -static int rlphy_detach(dev) - 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 rlphy_service(sc, mii, cmd) struct mii_softc *sc; |
