Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic - Call if_deactivate instead of smc91cxx_disable ...



details:   https://anonhg.NetBSD.org/src/rev/45927ca1ff08
branches:  trunk
changeset: 481703:45927ca1ff08
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Feb 04 04:05:50 2000 +0000

description:
- Call if_deactivate instead of smc91cxx_disable when deactivating.
- Fix typo in comment.

diffstat:

 sys/dev/ic/smc91cxx.c |  12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diffs (33 lines):

diff -r 7712635d6672 -r 45927ca1ff08 sys/dev/ic/smc91cxx.c
--- a/sys/dev/ic/smc91cxx.c     Fri Feb 04 03:45:48 2000 +0000
+++ b/sys/dev/ic/smc91cxx.c     Fri Feb 04 04:05:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smc91cxx.c,v 1.23 2000/02/03 16:20:49 itojun Exp $     */
+/*     $NetBSD: smc91cxx.c,v 1.24 2000/02/04 04:05:50 enami Exp $      */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -1219,13 +1219,7 @@
                break;
 
        case DVACT_DEACTIVATE:
-#ifdef notyet
-               /* First, kill off the interface. */
-               if_detach(sc->sc_ec.ec_if);
-#endif
-
-               /* Now disable the interface. */
-               smc91cxx_disable(sc);
+               if_deactivate(&sc->sc_ec.ec_if);
                break;
        }
        splx(s);
@@ -1240,7 +1234,7 @@
        struct smc91cxx_softc *sc = (struct smc91cxx_softc *)self;
        struct ifnet *ifp = &sc->sc_ec.ec_if;
 
-       /* dp8390_disable() checks sc->sc_enabled */
+       /* smc91cxx_disable() checks sc->sc_enabled */
        smc91cxx_disable(sc);
 
        /* smc91cxx_attach() never fails */



Home | Main Index | Thread Index | Old Index