From a782bc232937f3c365d66e5eee5b8d6129a29a73 Mon Sep 17 00:00:00 2001 From: Thomas Nordin Date: Sat, 15 Dec 2001 05:33:54 +0000 Subject: Disestablish the powerhook on detach. ok jason@ --- sys/dev/ic/xl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev') 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); } -- cgit v1.2.3