diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2003-09-06 20:53:58 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2003-09-06 20:53:58 +0000 |
commit | ee121be7648a748314d652c30054183ed958aad1 (patch) | |
tree | 3e19eac6b77e5d58091242ce790b634ccbcbd0d0 /sys/dev/pcmcia/if_wi_pcmcia.c | |
parent | 60cecfe3de2129547d64c8b4e4cfc9db710a4bac (diff) |
Add wi_detach, use it in pcmcia so that the shutdownhook is properly removed.
ok miod@ millert@ deraadt@
Diffstat (limited to 'sys/dev/pcmcia/if_wi_pcmcia.c')
-rw-r--r-- | sys/dev/pcmcia/if_wi_pcmcia.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pcmcia/if_wi_pcmcia.c b/sys/dev/pcmcia/if_wi_pcmcia.c index 4db761a37d7..008f4aa5a1b 100644 --- a/sys/dev/pcmcia/if_wi_pcmcia.c +++ b/sys/dev/pcmcia/if_wi_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi_pcmcia.c,v 1.42 2003/07/14 22:06:48 millert Exp $ */ +/* $OpenBSD: if_wi_pcmcia.c,v 1.43 2003/09/06 20:53:57 drahn Exp $ */ /* $NetBSD: if_wi_pcmcia.c,v 1.14 2001/11/26 04:34:56 ichiro Exp $ */ /* @@ -417,8 +417,7 @@ wi_pcmcia_detach(dev, flags) return (0); } - if (ifp->if_flags & IFF_RUNNING) - wi_stop(sc); + wi_detach(sc); sc->wi_flags = 0; |