Fix bm_shutdown() KOBJ method to correspond to return int, as it should.

Found by:	Andriy Gapon
This commit is contained in:
Nathan Whitehorn 2009-02-04 22:16:27 +00:00
parent d37245a0de
commit 6b122703cc

View File

@ -81,7 +81,7 @@ MODULE_DEPEND(bm, miibus, 1, 1, 1);
static int bm_probe (device_t); static int bm_probe (device_t);
static int bm_attach (device_t); static int bm_attach (device_t);
static int bm_detach (device_t); static int bm_detach (device_t);
static void bm_shutdown (device_t); static int bm_shutdown (device_t);
static void bm_start (struct ifnet *); static void bm_start (struct ifnet *);
static void bm_start_locked (struct ifnet *); static void bm_start_locked (struct ifnet *);
@ -654,7 +654,7 @@ bm_detach(device_t dev)
return (0); return (0);
} }
static void static int
bm_shutdown(device_t dev) bm_shutdown(device_t dev)
{ {
struct bm_softc *sc; struct bm_softc *sc;
@ -664,6 +664,8 @@ bm_shutdown(device_t dev)
BM_LOCK(sc); BM_LOCK(sc);
bm_stop(sc); bm_stop(sc);
BM_UNLOCK(sc); BM_UNLOCK(sc);
return (0);
} }
static void static void