Spell destroy in a more traditional way

This commit is contained in:
imp 2005-07-19 22:26:44 +00:00
parent 66b2171b38
commit bb48aae2f2
2 changed files with 4 additions and 4 deletions

View File

@ -281,7 +281,7 @@ ep_attach(struct ep_softc *sc)
error = ep_get_macaddr(sc, sc->eaddr);
if (error) {
device_printf(sc->dev, "Unable to get MAC address!\n");
EP_LOCK_DESTORY(sc);
EP_LOCK_DESTROY(sc);
return (ENXIO);
}
}
@ -289,7 +289,7 @@ ep_attach(struct ep_softc *sc)
ifp = sc->ifp = if_alloc(IFT_ETHER);
if (ifp == NULL) {
device_printf(sc->dev, "if_alloc() failed\n");
EP_LOCK_DESTORY(sc);
EP_LOCK_DESTROY(sc);
return (ENOSPC);
}
@ -361,7 +361,7 @@ ep_detach(device_t dev)
sc->gone = 1;
ep_free(dev);
EP_LOCK_DESTORY(sc);
EP_LOCK_DESTROY(sc);
return (0);
}

View File

@ -103,6 +103,6 @@ int ep_get_e(struct ep_softc *, uint16_t, uint16_t *);
#define EP_LOCK_INIT(_sc) \
mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->dev), \
MTX_NETWORK_LOCK, MTX_DEF)
#define EP_LOCK_DESTORY(_sc) mtx_destroy(&_sc->sc_mtx);
#define EP_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx);
#define EP_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED);
#define EP_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED);