From bb48aae2f21d98f6ccaab379ed2ffc6e480159db Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 19 Jul 2005 22:26:44 +0000 Subject: Spell destroy in a more traditional way --- sys/dev/ep/if_ep.c | 6 +++--- sys/dev/ep/if_epvar.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev/ep') diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index cee3aa6..de419ff 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -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); } diff --git a/sys/dev/ep/if_epvar.h b/sys/dev/ep/if_epvar.h index 9480bdf..704fe02 100644 --- a/sys/dev/ep/if_epvar.h +++ b/sys/dev/ep/if_epvar.h @@ -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); -- cgit v1.1