aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bce
diff options
context:
space:
mode:
authorPyun YongHyeon <yongari@FreeBSD.org>2008-03-13 07:50:48 +0000
committerPyun YongHyeon <yongari@FreeBSD.org>2008-03-13 07:50:48 +0000
commitb9251501098ece76306aa0fd7417efc01883a316 (patch)
tree830df9ccaa2d0f1370aef8e23c7b4d2db5adc979 /sys/dev/bce
parent7d3650575cb390d8da0a49d7b23d5ff33a39f6c9 (diff)
Notes
Diffstat (limited to 'sys/dev/bce')
-rw-r--r--sys/dev/bce/if_bce.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c
index d9ebc6e0f946..e50229f2db37 100644
--- a/sys/dev/bce/if_bce.c
+++ b/sys/dev/bce/if_bce.c
@@ -211,7 +211,7 @@ static struct flash_spec flash_table[] =
static int bce_probe (device_t);
static int bce_attach (device_t);
static int bce_detach (device_t);
-static void bce_shutdown (device_t);
+static int bce_shutdown (device_t);
/****************************************************************************/
@@ -915,9 +915,9 @@ bce_detach(device_t dev)
/* Stops and resets the controller. */
/* */
/* Returns: */
-/* Nothing */
+/* 0 on success, positive value on failure. */
/****************************************************************************/
-static void
+static int
bce_shutdown(device_t dev)
{
struct bce_softc *sc = device_get_softc(dev);
@@ -935,6 +935,8 @@ bce_shutdown(device_t dev)
BCE_UNLOCK(sc);
DBPRINT(sc, BCE_VERBOSE_SPECIAL, "Exiting %s()\n", __FUNCTION__);
+
+ return (0);
}