summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorThomas Nordin <nordin@cvs.openbsd.org>2001-12-15 05:33:54 +0000
committerThomas Nordin <nordin@cvs.openbsd.org>2001-12-15 05:33:54 +0000
commita782bc232937f3c365d66e5eee5b8d6129a29a73 (patch)
tree62b57aaeba6b5070fca69c743fcb5fcaca157419 /sys/dev
parentafebbb16375bef93763ff6915f928a4341f8d031 (diff)
Disestablish the powerhook on detach. ok jason@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/xl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index add5997203b..ee49b881c46 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.31 2001/11/06 19:53:18 miod Exp $ */
+/* $OpenBSD: xl.c,v 1.32 2001/12/15 05:33:53 nordin Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -867,6 +867,7 @@ void xl_setmode(sc, media)
void xl_reset(sc, hard)
struct xl_softc *sc;
+ int hard;
{
register int i;
@@ -2698,6 +2699,7 @@ xl_detach(sc)
if_detach(ifp);
shutdownhook_disestablish(sc->sc_sdhook);
+ powerhook_disestablish(sc->sc_sdhook);
return (0);
}