From ee121be7648a748314d652c30054183ed958aad1 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Sat, 6 Sep 2003 20:53:58 +0000 Subject: Add wi_detach, use it in pcmcia so that the shutdownhook is properly removed. ok miod@ millert@ deraadt@ --- sys/dev/pcmcia/if_wi_pcmcia.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev/pcmcia/if_wi_pcmcia.c') 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; -- cgit v1.2.3