Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia Get rid of shutdown hook and attached media o...



details:   https://anonhg.NetBSD.org/src/rev/6235ef5bfe2e
branches:  trunk
changeset: 481574:6235ef5bfe2e
user:      augustss <augustss%NetBSD.org@localhost>
date:      Wed Feb 02 08:08:50 2000 +0000

description:
Get rid of shutdown hook and attached media on detach.

diffstat:

 sys/dev/pcmcia/if_ray.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r a182ec1c70b5 -r 6235ef5bfe2e sys/dev/pcmcia/if_ray.c
--- a/sys/dev/pcmcia/if_ray.c   Wed Feb 02 08:06:49 2000 +0000
+++ b/sys/dev/pcmcia/if_ray.c   Wed Feb 02 08:08:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ray.c,v 1.7 2000/02/02 07:22:06 augustss Exp $      */
+/*     $NetBSD: if_ray.c,v 1.8 2000/02/02 08:08:50 augustss Exp $      */
 /* 
  * Copyright (c) 2000 Christian E. Hopps
  * All rights reserved.
@@ -664,6 +664,9 @@
        if (sc->sc_if.if_flags & IFF_RUNNING)
                ray_disable(sc);
 
+       shutdownhook_disestablish(sc->sc_sdhook);
+       ifmedia_delete_instance(&sc->sc_media, IFM_INST_ANY);
+
        /* give back the memory */
 #if RAY_USE_AMEM
        if (sc->sc_awindow != -1) {



Home | Main Index | Thread Index | Old Index