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/lxtphy.c | |
| parent | ccc4300e95754fa2e86a6a028f72679cf9c970be (diff) | |
Notes
Diffstat (limited to 'sys/dev/mii/lxtphy.c')
| -rw-r--r-- | sys/dev/mii/lxtphy.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/mii/lxtphy.c b/sys/dev/mii/lxtphy.c index f575fc34dfab..15ec110755e7 100644 --- a/sys/dev/mii/lxtphy.c +++ b/sys/dev/mii/lxtphy.c @@ -98,13 +98,12 @@ static const char rcsid[] = static int lxtphy_probe (device_t); static int lxtphy_attach (device_t); -static int lxtphy_detach (device_t); static device_method_t lxtphy_methods[] = { /* device interface */ DEVMETHOD(device_probe, lxtphy_probe), DEVMETHOD(device_attach, lxtphy_attach), - DEVMETHOD(device_detach, lxtphy_detach), + DEVMETHOD(device_detach, mii_phy_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), { 0, 0 } }; @@ -185,21 +184,6 @@ static int lxtphy_attach(dev) return(0); } - -static int lxtphy_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 lxtphy_service(sc, mii, cmd) struct mii_softc *sc; |
