summaryrefslogtreecommitdiffstats
path: root/sys/dev/tx/if_tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/tx/if_tx.c')
-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