Get rid of the powerhook when we detach.

This commit is contained in:
thorpej 2000-03-20 07:52:58 +00:00
parent 2bbd0a8511
commit 92d27d3c2e
2 changed files with 4 additions and 2 deletions

View File

@ -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 @@ fxp_detach(sc)
bus_dmamem_free(sc->sc_dmat, &sc->sc_cdseg, sc->sc_cdnseg);
shutdownhook_disestablish(sc->sc_sdhook);
powerhook_disestablish(sc->sc_powerhook);
return (0);
}

View File

@ -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 @@ tlp_detach(sc)
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);