diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-04-24 21:15:34 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-04-24 21:15:34 +0000 |
commit | 4ad8536a84d3e20257afffae7e57e81dd8e5dcf9 (patch) | |
tree | 5b528231ed6e27a4dba885f4aa41cb8642625992 /sys/dev/pcmcia | |
parent | 564d08ef1340191bc6300f981e2ebc4c4605e1d1 (diff) |
use mii_detach, now xe detach/attach rocks again
Diffstat (limited to 'sys/dev/pcmcia')
-rw-r--r-- | sys/dev/pcmcia/if_xe.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pcmcia/if_xe.c b/sys/dev/pcmcia/if_xe.c index 8fb195cb8e7..b7888ef3e40 100644 --- a/sys/dev/pcmcia/if_xe.c +++ b/sys/dev/pcmcia/if_xe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_xe.c,v 1.13 2000/04/24 21:10:09 niklas Exp $ */ +/* $OpenBSD: if_xe.c,v 1.14 2000/04/24 21:15:33 niklas Exp $ */ /* * Copyright (c) 1999 Niklas Hallqvist, C Stone, Job de Haas @@ -466,10 +466,8 @@ xe_pcmcia_detach(dev, flags) int rv = 0; for (msc = LIST_FIRST(&sc->sc_mii.mii_phys); msc; - msc = LIST_FIRST(&sc->sc_mii.mii_phys)) { - LIST_REMOVE(msc, mii_list); - rv |= config_detach(&msc->mii_dev, flags); - } + msc = LIST_FIRST(&sc->sc_mii.mii_phys)) + rv |= mii_detach(msc, flags); pcmcia_io_unmap(psc->sc_pf, psc->sc_io_window); pcmcia_io_free(psc->sc_pf, &psc->sc_pcioh); |