summaryrefslogtreecommitdiffstats
path: root/sys/dev/bce
diff options
context:
space:
mode:
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 d9ebc6e..e50229f 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);
}
OpenPOWER on IntegriCloud