summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sis/if_sis.c3
-rw-r--r--sys/dev/tl/if_tl.c6
-rw-r--r--sys/dev/tx/if_tx.c5
3 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/sis/if_sis.c b/sys/dev/sis/if_sis.c
index 8da95af..fd6e201 100644
--- a/sys/dev/sis/if_sis.c
+++ b/sys/dev/sis/if_sis.c
@@ -2257,7 +2257,7 @@ sis_stop(struct sis_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
sis_shutdown(device_t dev)
{
struct sis_softc *sc;
@@ -2267,6 +2267,7 @@ sis_shutdown(device_t dev)
sis_reset(sc);
sis_stop(sc);
SIS_UNLOCK(sc);
+ return (0);
}
static device_method_t sis_methods[] = {
diff --git a/sys/dev/tl/if_tl.c b/sys/dev/tl/if_tl.c
index 371feb2..28fea78 100644
--- a/sys/dev/tl/if_tl.c
+++ b/sys/dev/tl/if_tl.c
@@ -282,7 +282,7 @@ static void tl_init(void *);
static void tl_init_locked(struct tl_softc *);
static void tl_stop(struct tl_softc *);
static void tl_watchdog(struct ifnet *);
-static void tl_shutdown(device_t);
+static int tl_shutdown(device_t);
static int tl_ifmedia_upd(struct ifnet *);
static void tl_ifmedia_sts(struct ifnet *, struct ifmediareq *);
@@ -2347,7 +2347,7 @@ tl_stop(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
tl_shutdown(dev)
device_t dev;
{
@@ -2359,5 +2359,5 @@ tl_shutdown(dev)
tl_stop(sc);
TL_UNLOCK(sc);
- return;
+ return (0);
}
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