summaryrefslogtreecommitdiffstats
path: root/sys/dev/tx
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-02-10 23:17:20 +0000
committerimp <imp@FreeBSD.org>2009-02-10 23:17:20 +0000
commit556b4fb0466afa487879fd40f612de26a5276bd1 (patch)
tree360c24044fdf261589295095bb135e6717a92e2a /sys/dev/tx
parent36ef8e5ed35902abf5171b23d2727022e11d9997 (diff)
downloadFreeBSD-src-556b4fb0466afa487879fd40f612de26a5276bd1.zip
FreeBSD-src-556b4fb0466afa487879fd40f612de26a5276bd1.tar.gz
Fix shutdown prototypes.
Diffstat (limited to 'sys/dev/tx')
-rw-r--r--sys/dev/tx/if_tx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c
index 033c22b..2e38dd2 100644
--- a/sys/dev/tx/if_tx.c
+++ b/sys/dev/tx/if_tx.c
@@ -122,7 +122,7 @@ static void epic_ifmedia_sts(struct ifnet *, struct ifmediareq *);
static int epic_probe(device_t);
static int epic_attach(device_t);
-static void epic_shutdown(device_t);
+static int epic_shutdown(device_t);
static int epic_detach(device_t);
static void epic_release(epic_softc_t *);
static struct epic_type *epic_devtype(device_t);
@@ -502,7 +502,7 @@ epic_detach(device_t dev)
* 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
epic_shutdown(device_t dev)
{
epic_softc_t *sc;
@@ -512,6 +512,7 @@ epic_shutdown(device_t dev)
EPIC_LOCK(sc);
epic_stop(sc);
EPIC_UNLOCK(sc);
+ return (0);
}
/*
OpenPOWER on IntegriCloud