summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/hme/if_hme.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/hme/if_hme.c b/sys/dev/hme/if_hme.c
index 8ed71b1..80237b3 100644
--- a/sys/dev/hme/if_hme.c
+++ b/sys/dev/hme/if_hme.c
@@ -199,14 +199,13 @@ hme_config(struct hme_softc *sc)
*
*/
- HME_LOCK_ASSERT(sc, MA_NOTOWNED);
+ callout_init_mtx(&sc->sc_tick_ch, &sc->sc_lock, 0);
+
/* Make sure the chip is stopped. */
HME_LOCK(sc);
hme_stop(sc);
HME_UNLOCK(sc);
- callout_init_mtx(&sc->sc_tick_ch, &sc->sc_lock, 0);
-
/*
* Allocate DMA capable memory
* Buffer descriptors must be aligned on a 2048 byte boundary;
@@ -381,8 +380,6 @@ hme_detach(struct hme_softc *sc)
struct ifnet *ifp = sc->sc_ifp;
int i;
- HME_LOCK_ASSERT(sc, MA_NOTOWNED);
-
ether_ifdetach(ifp);
if_free(ifp);
HME_LOCK(sc);
OpenPOWER on IntegriCloud