From 6b122703cc1fcf73cb1565d2c016c9c094cc290c Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Wed, 4 Feb 2009 22:16:27 +0000 Subject: [PATCH] Fix bm_shutdown() KOBJ method to correspond to return int, as it should. Found by: Andriy Gapon --- sys/dev/bm/if_bm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/bm/if_bm.c b/sys/dev/bm/if_bm.c index b9bddb52a213..1bb07b2f3a48 100644 --- a/sys/dev/bm/if_bm.c +++ b/sys/dev/bm/if_bm.c @@ -81,7 +81,7 @@ MODULE_DEPEND(bm, miibus, 1, 1, 1); static int bm_probe (device_t); static int bm_attach (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_locked (struct ifnet *); @@ -654,7 +654,7 @@ bm_detach(device_t dev) return (0); } -static void +static int bm_shutdown(device_t dev) { struct bm_softc *sc; @@ -664,6 +664,8 @@ bm_shutdown(device_t dev) BM_LOCK(sc); bm_stop(sc); BM_UNLOCK(sc); + + return (0); } static void