summaryrefslogtreecommitdiffstats
path: root/sys/dev/bce
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2007-11-22 02:45:00 +0000
committeryongari <yongari@FreeBSD.org>2007-11-22 02:45:00 +0000
commitd6d1923521f67b21a7319b500381a1e985b177ff (patch)
treed1d19f54c55bb9daf8443358fe00c8ae2018ba6b /sys/dev/bce
parent5fe104598e52f3420ed1a06628822037577d6f88 (diff)
downloadFreeBSD-src-d6d1923521f67b21a7319b500381a1e985b177ff.zip
FreeBSD-src-d6d1923521f67b21a7319b500381a1e985b177ff.tar.gz
Fix function prototype for device_shutdown method.
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