aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2009-02-10 23:17:20 +0000
committerWarner Losh <imp@FreeBSD.org>2009-02-10 23:17:20 +0000
commite436c382385c6239e8229c4fbc70df5665cec49d (patch)
tree360c24044fdf261589295095bb135e6717a92e2a /sys/dev
parent507a69a927ac2b67bbb0f9f39db7e3438c21fc7d (diff)
Notes
Diffstat (limited to 'sys/dev')
-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 8da95af1a91ba..fd6e20111fba8 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 371feb229f4be..28fea784b53cb 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 033c22bb980b3..2e38dd20061e4 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);
}
/*