Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Get rid of the powerhook when we detach.



details:   https://anonhg.NetBSD.org/src/rev/155187b5b44c
branches:  trunk
changeset: 483888:155187b5b44c
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Mar 20 07:52:58 2000 +0000

description:
Get rid of the powerhook when we detach.

diffstat:

 sys/dev/ic/i82557.c |  3 ++-
 sys/dev/ic/tulip.c  |  3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r ec97c3b4635f -r 155187b5b44c sys/dev/ic/i82557.c
--- a/sys/dev/ic/i82557.c       Mon Mar 20 07:30:14 2000 +0000
+++ b/sys/dev/ic/i82557.c       Mon Mar 20 07:52:58 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82557.c,v 1.22 2000/03/06 21:02:01 thorpej Exp $      */
+/*     $NetBSD: i82557.c,v 1.23 2000/03/20 07:52:58 thorpej Exp $      */
 
 /*-
  * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -1959,6 +1959,7 @@
        bus_dmamem_free(sc->sc_dmat, &sc->sc_cdseg, sc->sc_cdnseg);
 
        shutdownhook_disestablish(sc->sc_sdhook);
+       powerhook_disestablish(sc->sc_powerhook);
 
        return (0);
 }
diff -r ec97c3b4635f -r 155187b5b44c sys/dev/ic/tulip.c
--- a/sys/dev/ic/tulip.c        Mon Mar 20 07:30:14 2000 +0000
+++ b/sys/dev/ic/tulip.c        Mon Mar 20 07:52:58 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tulip.c,v 1.54 2000/03/19 21:45:23 thorpej Exp $       */
+/*     $NetBSD: tulip.c,v 1.55 2000/03/20 07:52:58 thorpej Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -624,6 +624,7 @@
        bus_dmamem_free(sc->sc_dmat, &sc->sc_cdseg, sc->sc_cdnseg);
 
        shutdownhook_disestablish(sc->sc_sdhook);
+       powerhook_disestablish(sc->sc_powerhook);
 
        if (sc->sc_srom)
                free(sc->sc_srom, M_DEVBUF);



Home | Main Index | Thread Index | Old Index