svn commit: r188131 - head/sys/dev/bm

Nathan Whitehorn nwhitehorn at FreeBSD.org
Wed Feb 4 14:16:29 PST 2009


Author: nwhitehorn
Date: Wed Feb  4 22:16:27 2009
New Revision: 188131
URL: http://svn.freebsd.org/changeset/base/188131

Log:
  Fix bm_shutdown() KOBJ method to correspond to return int, as it should.
  
  Found by:	Andriy Gapon

Modified:
  head/sys/dev/bm/if_bm.c

Modified: head/sys/dev/bm/if_bm.c
==============================================================================
--- head/sys/dev/bm/if_bm.c	Wed Feb  4 22:04:06 2009	(r188130)
+++ head/sys/dev/bm/if_bm.c	Wed Feb  4 22:16:27 2009	(r188131)
@@ -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


More information about the svn-src-head mailing list