diff options
| author | martin <martin@NetBSD.org> | 2002-09-26 23:55:43 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2002-09-26 23:55:43 +0000 |
| commit | e6c17aca9199a04e6dcbd31bb64aad9f06dfb1c4 (patch) | |
| tree | 6eef54e95fd8ca2b021b31266e00f9b2d8896563 /sys/dev | |
| parent | 67bd51c724c6900efdd8c8492651da2ee2af6843 (diff) | |
If we wi_stop the card in wi_shutdown, better do that before the frontend
removes power from the pcmcia slot (inside the sc_disable hook).
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/wi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/wi.c b/sys/dev/ic/wi.c index e7cc785a041..2b4f8b4f081 100644 --- a/sys/dev/ic/wi.c +++ b/sys/dev/ic/wi.c @@ -1,4 +1,4 @@ -/* $NetBSD: wi.c,v 1.86 2002/09/26 23:47:57 martin Exp $ */ +/* $NetBSD: wi.c,v 1.87 2002/09/26 23:55:43 martin Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -70,7 +70,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.86 2002/09/26 23:47:57 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.87 2002/09/26 23:55:43 martin Exp $"); #define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */ #define WI_HERMES_STATS_WAR /* Work around stats counter bug. */ @@ -3040,10 +3040,10 @@ wi_shutdown(sc) s = splnet(); if (sc->sc_enabled) { + wi_stop(&sc->sc_ethercom.ec_if, 0); if (sc->sc_disable) (*sc->sc_disable)(sc); sc->sc_enabled = 0; - wi_stop(&sc->sc_ethercom.ec_if, 0); } splx(s); |
