From d6d1923521f67b21a7319b500381a1e985b177ff Mon Sep 17 00:00:00 2001 From: yongari Date: Thu, 22 Nov 2007 02:45:00 +0000 Subject: Fix function prototype for device_shutdown method. --- sys/dev/bce/if_bce.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/dev/bce') 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); } -- cgit v1.1