From: niklas Date: Mon, 24 Apr 2000 21:15:33 +0000 (+0000) Subject: use mii_detach, now xe detach/attach rocks again X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f83bd74a223ab70d7fd9422d4bceffada3e00a6e;p=openbsd use mii_detach, now xe detach/attach rocks again --- 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);