summaryrefslogtreecommitdiffstats
path: root/sys/dev/nve
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/nve
parent5fe104598e52f3420ed1a06628822037577d6f88 (diff)
downloadFreeBSD-src-d6d1923521f67b21a7319b500381a1e985b177ff.zip
FreeBSD-src-d6d1923521f67b21a7319b500381a1e985b177ff.tar.gz
Fix function prototype for device_shutdown method.
Diffstat (limited to 'sys/dev/nve')
-rw-r--r--sys/dev/nve/if_nve.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/nve/if_nve.c b/sys/dev/nve/if_nve.c
index 7ae7993..322ad07 100644
--- a/sys/dev/nve/if_nve.c
+++ b/sys/dev/nve/if_nve.c
@@ -130,7 +130,7 @@ static int nve_detach(device_t);
static void nve_init(void *);
static void nve_init_locked(struct nve_softc *);
static void nve_stop(struct nve_softc *);
-static void nve_shutdown(device_t);
+static int nve_shutdown(device_t);
static int nve_init_rings(struct nve_softc *);
static void nve_free_rings(struct nve_softc *);
@@ -717,7 +717,7 @@ nve_stop(struct nve_softc *sc)
}
/* Shutdown interface for unload/reboot */
-static void
+static int
nve_shutdown(device_t dev)
{
struct nve_softc *sc;
@@ -730,6 +730,8 @@ nve_shutdown(device_t dev)
NVE_LOCK(sc);
nve_stop(sc);
NVE_UNLOCK(sc);
+
+ return (0);
}
/* Allocate TX ring buffers */
OpenPOWER on IntegriCloud