summaryrefslogtreecommitdiffstats
path: root/sys/dev/bge
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-02-05 18:43:13 +0000
committerimp <imp@FreeBSD.org>2009-02-05 18:43:13 +0000
commit062d78912fbe54b3dcbdb9fe7897c9791a1946f5 (patch)
tree0cdd6d7440af4bbc6b44b0625cf822b07370d9bc /sys/dev/bge
parent0751bde8b4ff76a2f8c8e771281ec6b866ff6e09 (diff)
downloadFreeBSD-src-062d78912fbe54b3dcbdb9fe7897c9791a1946f5.zip
FreeBSD-src-062d78912fbe54b3dcbdb9fe7897c9791a1946f5.tar.gz
device_shutdown returns an int.
Diffstat (limited to 'sys/dev/bge')
-rw-r--r--sys/dev/bge/if_bge.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index 557e735..335200b 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -348,7 +348,7 @@ static void bge_init_locked(struct bge_softc *);
static void bge_init(void *);
static void bge_stop(struct bge_softc *);
static void bge_watchdog(struct bge_softc *);
-static void bge_shutdown(device_t);
+static int bge_shutdown(device_t);
static int bge_ifmedia_upd_locked(struct ifnet *);
static int bge_ifmedia_upd(struct ifnet *);
static void bge_ifmedia_sts(struct ifnet *, struct ifmediareq *);
@@ -4280,17 +4280,18 @@ bge_stop(struct bge_softc *sc)
* Stop all chip I/O so that the kernel's probe routines don't
* get confused by errant DMAs when rebooting.
*/
-static void
+static int
bge_shutdown(device_t dev)
{
struct bge_softc *sc;
sc = device_get_softc(dev);
-
BGE_LOCK(sc);
bge_stop(sc);
bge_reset(sc);
BGE_UNLOCK(sc);
+
+ return (0);
}
static int
OpenPOWER on IntegriCloud